public function Menu::submitConfigurationForm in Workbench Access 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides AccessControlHierarchyBase::submitConfigurationForm
File
- src/
Plugin/ AccessControlHierarchy/ Menu.php, line 268
Class
- Menu
- Defines a hierarchy based on a Menu.
Namespace
Drupal\workbench_access\Plugin\AccessControlHierarchyCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['menus'] = array_values(array_filter($form_state
->getValue('menus')));
$this->configuration['bundles'] = array_values(array_filter($form_state
->getValue('bundles')));
}