function 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.
3 calls to Drupal::configFactory()
- 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.
- TextFormat::configFactory in core/
modules/ filter/ src/ Element/ TextFormat.php - Wraps the config factory.
File
-
core/
lib/ Drupal.php, line 427
Class
- Drupal
- Static Service Container wrapper.
Code
public static function configFactory() {
return static::getContainer()->get('config.factory');
}