You are here

public function ViewsBulkOperationExampleAction::submitConfigurationForm in Views Bulk Operations (VBO) 4.0.x

Same name and namespace in other branches
  1. 8.3 modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php \Drupal\views_bulk_operations_example\Plugin\Action\ViewsBulkOperationExampleAction::submitConfigurationForm()
  2. 8 modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php \Drupal\views_bulk_operations_example\Plugin\Action\ViewsBulkOperationExampleAction::submitConfigurationForm()
  3. 8.2 modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php \Drupal\views_bulk_operations_example\Plugin\Action\ViewsBulkOperationExampleAction::submitConfigurationForm()

Submit handler for the action configuration form.

If not implemented, the cleaned form values will be passed directly to the action $configuration parameter.

Parameters

array $form: Form array.

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

Overrides ViewsBulkOperationsActionBase::submitConfigurationForm

File

modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php, line 93

Class

ViewsBulkOperationExampleAction
An example action covering most of the possible options.

Namespace

Drupal\views_bulk_operations_example\Plugin\Action

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {

  // This is not required here, when this method is not defined,
  // form values are assigned to the action configuration by default.
  // This function is a must only when user input processing is needed.
  $this->configuration['example_config_setting'] = $form_state
    ->getValue('example_config_setting');
}