function Drupal::configFactory
Same name and namespace in other branches
- 11.x core/lib/Drupal.php \Drupal::configFactory()
- 10 core/lib/Drupal.php \Drupal::configFactory()
- 9 core/lib/Drupal.php \Drupal::configFactory()
- 8.9.x core/lib/Drupal.php \Drupal::configFactory()
Retrieves the configuration factory.
This is mostly used to change the override settings on the configuration factory. For example, changing the language, or turning all overrides on or off.
Return value
\Drupal\Core\Config\ConfigFactoryInterface The configuration factory service.
7 calls to Drupal::configFactory()
- BlockCreationTrait::placeBlock in core/
modules/ block/ tests/ src/ Traits/ BlockCreationTrait.php - Creates a block instance based on default settings.
- InstallerTranslationMultipleLanguageTest::verifyConfigLanguageAssumptions in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationMultipleLanguageTest.php - Verifies config entity and simple config langcode assumptions.
- LanguageMapper::__construct in core/
modules/ ckeditor5/ src/ LanguageMapper.php - PhpMail::__construct in core/
lib/ Drupal/ Core/ Mail/ Plugin/ Mail/ PhpMail.php - PhpMail constructor.
- ProcessedText::configFactory in core/
modules/ filter/ src/ Element/ ProcessedText.php - Wraps the config factory.
File
-
core/
lib/ Drupal.php, line 436
Class
- Drupal
- Static Service Container wrapper.
Code
public static function configFactory() {
return static::getContainer()->get('config.factory');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.