public function ConfigFactory::enterContext

Sets the config context by adding it to the context stack.

Parameters

\Drupal\Core\Config\Context\ContextInterface $context: The configuration context to add.

Return value

\Drupal\Core\Config\ConfigFactory The config factory object.

1 call to ConfigFactory::enterContext()
ConfigFactory::__construct in drupal/core/lib/Drupal/Core/Config/ConfigFactory.php
Constructs the Config factory.

File

drupal/core/lib/Drupal/Core/Config/ConfigFactory.php, line 148
Definition of Drupal\Core\Config\ConfigFactory.

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function enterContext(ContextInterface $context) {

  // Initialize the context as it is being entered.
  $this->contextStack[] = $context
    ->init();
  return $this;
}