protected function AccessConfigure::setConditions in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/AccessConfigure.php \Drupal\page_manager_ui\Form\AccessConfigure::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/ AccessConfigure.php, line 41 - Contains \Drupal\page_manager_ui\Form\AccessConfigure;
Class
Namespace
Drupal\page_manager_ui\FormCode
protected function setConditions($cached_values, $conditions) {
/** @var $page \Drupal\page_manager\PageInterface */
$page = $cached_values['page'];
$page
->set('access_conditions', $conditions);
$cached_values['page'] = $page;
return $cached_values;
}