You are here

protected function AddVariantSelectionConfigure::setConditions 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::setConditions()

Custom logic for setting the conditions array in cached_values.

Parameters

$cached_values:

$conditions: The conditions to set within the cached values.

Return value

mixed Return the $cached_values

Overrides ConditionConfigure::setConditions

File

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

Class

AddVariantSelectionConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function setConditions($cached_values, $conditions) {
  $page_variant = $this
    ->getPageVariant($cached_values);
  $page_variant
    ->set('selection_criteria', $conditions);
  return $cached_values;
}