public function Context::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/sebastian/recursion-context/src/Context.php \SebastianBergmann\RecursionContext\Context::__construct()
- 8 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::__construct()
- 8 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::__construct()
- 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Context.php \phpDocumentor\Reflection\DocBlock\Context::__construct()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::__construct()
Create a context object.
Parameters
\Drupal\Component\Plugin\Context\ContextDefinitionInterface $context_definition: The context definition.
mixed|null $context_value: The value of the context.
1 call to Context::__construct()
- Context::__construct in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php - Create a context object.
1 method overrides Context::__construct()
- Context::__construct in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php - Create a context object.
File
- core/
lib/ Drupal/ Component/ Plugin/ Context/ Context.php, line 41 - Contains \Drupal\Component\Plugin\Context\Context.
Class
- Context
- A generic context class for wrapping data a plugin needs to operate.
Namespace
Drupal\Component\Plugin\ContextCode
public function __construct(ContextDefinitionInterface $context_definition, $context_value = NULL) {
$this->contextDefinition = $context_definition;
$this->contextValue = $context_value;
}