You are here

public static function Drupal::configFactory in Drupal 9

Same name and namespace in other branches
  1. 8 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.

6 calls to Drupal::configFactory()
BlockCreationTrait::placeBlock in core/modules/block/tests/src/Traits/BlockCreationTrait.php
Creates a block instance based on default settings.
block_post_update_replace_node_type_condition in core/modules/block/block.post_update.php
Updates the node type visibility condition.
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.

... See full list

File

core/lib/Drupal.php, line 425

Class

Drupal
Static Service Container wrapper.

Code

public static function configFactory() {
  return static::getContainer()
    ->get('config.factory');
}