You are here

protected function PageVariantSelectionForm::getConditions in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/PageVariantSelectionForm.php \Drupal\page_manager_ui\Form\PageVariantSelectionForm::getConditions()

Custom logic for retrieving the conditions array from cached_values.

Parameters

$cached_values:

Return value

array

Overrides ManageConditions::getConditions

File

page_manager_ui/src/Form/PageVariantSelectionForm.php, line 52

Class

PageVariantSelectionForm

Namespace

Drupal\page_manager_ui\Form

Code

protected function getConditions($cached_values) {

  /** @var $page \Drupal\page_manager\Entity\PageVariant */
  $page_variant = $cached_values['page_variant'];
  return $page_variant
    ->get('selection_criteria');
}