You are here

protected function PageAccessForm::getContexts in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/PageAccessForm.php \Drupal\page_manager_ui\Form\PageAccessForm::getContexts()

Custom logic for retrieving the contexts array from cached_values.

Parameters

$cached_values:

Return value

\Drupal\Core\Plugin\Context\ContextInterface[]

Overrides ManageConditions::getContexts

File

page_manager_ui/src/Form/PageAccessForm.php, line 55
Contains \Drupal\page_manager_ui\Form\PageAccessForm.

Class

PageAccessForm

Namespace

Drupal\page_manager_ui\Form

Code

protected function getContexts($cached_values) {

  /** @var $page \Drupal\page_manager\Entity\Page */
  $page = $cached_values['page'];
  return $page
    ->getContexts();
}