You are here

public function PageVariant::getStaticContext in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 367

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function getStaticContext($name) {
  if (isset($this->static_context[$name])) {
    return $this->static_context[$name];
  }
  return [];
}