You are here

public function Page::getParameter in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Entity/Page.php \Drupal\page_manager\Entity\Page::getParameter()

Retrieves a specific parameter context.

Parameters

string $name: The parameter context's unique name.

Return value

array|null The parameter context array if the parameters exists, null otherwise.

Overrides PageInterface::getParameter

File

src/Entity/Page.php, line 249

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

public function getParameter($name) {
  if ($this
    ->hasParameter($name)) {
    return $this->parameters[$name];
  }
  return NULL;
}