public function ConfigContext::init

Implements \Drupal\Core\Config\Context\ContextInterface::init().

Overrides ContextInterface::init

1 call to ConfigContext::init()
UserConfigContext::setAccount in drupal/core/modules/user/lib/Drupal/user/UserConfigContext.php
Creates the configuration context for user accounts.

File

drupal/core/lib/Drupal/Core/Config/Context/ConfigContext.php, line 65
Contains \Drupal\Core\Config\Context\ConfigContext.

Class

ConfigContext
Defines the base configuration context object.

Namespace

Drupal\Core\Config\Context

Code

public function init() {

  // Reset existing overrides and get a UUID for this context.
  $this->overrides = array();
  $this
    ->setUuid();

  // Notify event listeners that a configuration context has been created.
  $this
    ->notify('context', NULL);
  return $this;
}