function ContextProviderTrait::getProvidedContext
See also
\Drupal\rules\Context\ContextProviderInterface
1 call to ContextProviderTrait::getProvidedContext()
- ContextProviderTrait::setProvidedValue in src/
Context/ ContextProviderTrait.php
File
-
src/
Context/ ContextProviderTrait.php, line 42
Class
- ContextProviderTrait
- A trait implementing the ContextProviderInterface.
Namespace
Drupal\rules\ContextCode
public function getProvidedContext($name) {
// Check for a valid context value.
if (!isset($this->providedContext[$name])) {
$this->providedContext[$name] = new Context($this->getProvidedContextDefinition($name));
}
return $this->providedContext[$name];
}