Gets the current config context.
Return value
\Drupal\Core\Config\Context\ContextInterface $context
The current configuration context.
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);
}