Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

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');
}
RSS feed
Powered by Drupal