You are here

public function ViewsBulkOperationsActionBase::submitConfigurationForm in Views Bulk Operations (VBO) 8

Same name and namespace in other branches
  1. 8.3 src/Action/ViewsBulkOperationsActionBase.php \Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::submitConfigurationForm()
  2. 8.2 src/Action/ViewsBulkOperationsActionBase.php \Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::submitConfigurationForm()
  3. 4.0.x src/Action/ViewsBulkOperationsActionBase.php \Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::submitConfigurationForm()

Default configuration form submit handler.

This method will be needed if a child class will implement \Drupal\Core\Plugin\PluginFormInterface. Code saver.

Parameters

array &$form: Form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

1 method overrides ViewsBulkOperationsActionBase::submitConfigurationForm()
ViewsBulkOperationExampleAction::submitConfigurationForm in modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php
Submit handler for the action configuration form.

File

src/Action/ViewsBulkOperationsActionBase.php, line 105

Class

ViewsBulkOperationsActionBase
Views Bulk Operations action plugin base.

Namespace

Drupal\views_bulk_operations\Action

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->cleanValues();
  foreach ($form_state
    ->getValues() as $key => $value) {
    $this->configuration[$key] = $value;
  }
}