function RulesPluginUI::form_submit
Implements RulesPluginUIInterface.
Overrides RulesPluginUIInterface::form_submit
File
-
ui/
ui.core.inc, line 409
Class
- RulesPluginUI
- Faces UI extender for all kind of Rules plugins.
Code
public function form_submit($form, &$form_state) {
// Need to save the element first, before trying to set the component
// permissions in settingsFormSubmit(), because hook_permission() needs
// to be able to load the modified element from the DB in order to work
// properly.
// @see https://www.drupal.org/project/rules/issues/2340505
$this->element
->save();
if (!empty($form['settings'])) {
$this->settingsFormSubmit($form, $form_state);
}
}