You are here

public function ConfigureAction::validateForm in Views Bulk Operations (VBO) 8.3

Same name and namespace in other branches
  1. 8 src/Form/ConfigureAction.php \Drupal\views_bulk_operations\Form\ConfigureAction::validateForm()
  2. 8.2 src/Form/ConfigureAction.php \Drupal\views_bulk_operations\Form\ConfigureAction::validateForm()
  3. 4.0.x src/Form/ConfigureAction.php \Drupal\views_bulk_operations\Form\ConfigureAction::validateForm()

Form validation handler.

Parameters

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

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

Overrides FormBase::validateForm

File

src/Form/ConfigureAction.php, line 122

Class

ConfigureAction
Action configuration form.

Namespace

Drupal\views_bulk_operations\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $form_data = $form_state
    ->get('views_bulk_operations');
  $action = $this->actionManager
    ->createInstance($form_data['action_id']);
  if (method_exists($action, 'validateConfigurationForm')) {
    $action
      ->validateConfigurationForm($form, $form_state);
  }
}