public function PageVariant::getStaticContext in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::getStaticContext()
Retrieves a specific static context.
Parameters
string $name: The static context unique name.
Return value
array The configuration array of the static context
Overrides PageVariantInterface::getStaticContext
File
- src/
Entity/ PageVariant.php, line 372 - Contains Drupal\page_manager\Entity\PageVariant.
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
public function getStaticContext($name) {
if (isset($this->static_context[$name])) {
return $this->static_context[$name];
}
return [];
}