public static function Drupal::configFactory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
14 calls to Drupal::configFactory()
- block_update_8001 in core/
modules/ block/ block.install - Update block visibility context mapping.
- block_update_8003 in core/
modules/ block/ block.install - Remove 'cache' setting.
- editor_update_8001 in core/
modules/ editor/ editor.install - Synchronizes the editor status with the paired text format status.
- field_update_8001 in core/
modules/ field/ field.install - Removes the stale 'target_bundle' storage setting on entity_reference fields.
- field_update_8002 in core/
modules/ field/ field.install - The 'entity_reference' field type is now provided by core.
File
- core/
lib/ Drupal.php, line 355 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function configFactory() {
return static::getContainer()
->get('config.factory');
}