public function PageInterface::addContext in Page Manager 8.4
Same name and namespace in other branches
- 8 src/PageInterface.php \Drupal\page_manager\PageInterface::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
1 method overrides PageInterface::addContext()
- Page::addContext in src/
Entity/ Page.php - Sets the context for a given name.
File
- src/
PageInterface.php, line 211
Class
- PageInterface
- Provides an interface for page entities.
Namespace
Drupal\page_managerCode
public function addContext($name, ContextInterface $value);