1 entity_bundle_layout_access.inc EntityBundleLayoutAccess::formSubmit($form, &$form_state)

Submit handler for the settings form for this access item.

Overrides LayoutAccess::formSubmit

File

core/modules/layout/plugins/access/entity_bundle_layout_access.inc, line 50
Plugin to provide access control based upon entity bundle.

Class

EntityBundleLayoutAccess
@file Plugin to provide access control based upon entity bundle.

Code

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