public function ActionFormControllerBase::save

Form submission handler for the 'save' action.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: A reference to a keyed array containing the current state of the form.

Overrides EntityFormController::save

File

drupal/core/modules/action/lib/Drupal/action/ActionFormControllerBase.php, line 152
Contains Drupal\action\ActionEditFormController.

Class

ActionFormControllerBase
Provides a base form controller for action forms.

Namespace

Drupal\action

Code

public function save(array $form, array &$form_state) {
  $this->entity
    ->save();
  drupal_set_message(t('The action has been successfully saved.'));
  $form_state['redirect'] = 'admin/config/system/actions';
}