You are here

public function Page::getParameters in Page Manager 8.4

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

Returns the parameter context value objects for this page entity.

Return value

array[] An array of parameter context arrays, keyed by parameter name.

Overrides PageInterface::getParameters

1 call to Page::getParameters()
Page::getContexts in src/Entity/Page.php
Gets the values for all defined contexts.

File

src/Entity/Page.php, line 238

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

public function getParameters() {
  $names = $this
    ->getParameterNames();
  if ($names) {
    return array_intersect_key($this->parameters, array_flip($names));
  }
  return [];
}