You are here

function flag_lists_actions_save_submit in Flag Lists 4.0.x

Form submission handler for the 'save' action.

Parameters

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

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

1 string reference to 'flag_lists_actions_save_submit'
flag_lists_actions_form_alter in modules/flag_lists_actions/flag_lists_actions.module
Implements hook_form_alter().

File

modules/flag_lists_actions/flag_lists_actions.module, line 49
Contains flag_lists_actions.module.

Code

function flag_lists_actions_save_submit(array &$form, FormStateInterface $form_state) {
  \Drupal::configFactory()
    ->getEditable('flag_lists.settings')
    ->set('hide_actions', $form_state
    ->getValue('hide_actions'))
    ->save();
}