public function ConfigFactory::getContext

Gets the current config context.

Return value

\Drupal\Core\Config\Context\ContextInterface $context The current configuration context.

2 calls to ConfigFactory::getContext()
ConfigFactory::get in drupal/core/lib/Drupal/Core/Config/ConfigFactory.php
Returns a configuration object for a given name and context.
ConfigFactory::rename in drupal/core/lib/Drupal/Core/Config/ConfigFactory.php
Renames a configuration object using the storage controller.

File

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

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function getContext() {
  return end($this->contextStack);
}