You are here

protected function AddVariantSelectionConfigure::getConditions in Page Manager 8.4

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

Custom logic for retrieving the conditions array from cached_values.

Parameters

$cached_values:

Return value

array

Overrides ConditionConfigure::getConditions

File

page_manager_ui/src/Form/AddVariantSelectionConfigure.php, line 37

Class

AddVariantSelectionConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function getConditions($cached_values) {
  $page_variant = $this
    ->getPageVariant($cached_values);
  return $page_variant
    ->get('selection_criteria');
}