1 user_role_layout_access.inc UserRoleLayoutAccess::formSubmit($form, &$form_state)

Submit handler for the settings form for this access item.

Overrides LayoutAccessNegatable::formSubmit

File

core/modules/layout/plugins/access/user_role_layout_access.inc, line 66
Plugin to provide access control based upon role membership.

Class

UserRoleLayoutAccess
@file Plugin to provide access control based upon role membership.

Code

function formSubmit($form, &$form_state) {
  parent::formSubmit($form, $form_state);
  $this->settings['roles'] = array_keys(array_filter($form_state['values']['roles']));
}