public function Page::addContext in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/Page.php \Drupal\page_manager\Entity\Page::addContext()
Sets the context for a given name.
Parameters
string $name: The name of the context.
\Drupal\Component\Plugin\Context\ContextInterface $value: The context to add.
Return value
$this
Overrides PageInterface::addContext
File
- src/
Entity/ Page.php, line 338 - Contains \Drupal\page_manager\Entity\Page.
Class
- Page
- Defines a Page entity class.
Namespace
Drupal\page_manager\EntityCode
public function addContext($name, ContextInterface $value) {
$this->contexts[$name] = $value;
}