public function ConfigureAction::validateForm in Views Bulk Operations (VBO) 8
Same name and namespace in other branches
- 8.3 src/Form/ConfigureAction.php \Drupal\views_bulk_operations\Form\ConfigureAction::validateForm()
- 8.2 src/Form/ConfigureAction.php \Drupal\views_bulk_operations\Form\ConfigureAction::validateForm()
- 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 136
Class
- ConfigureAction
- Action configuration form.
Namespace
Drupal\views_bulk_operations\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$storage = $form_state
->getStorage();
$form_data = $storage['views_bulk_operations'];
$action = $this->actionManager
->createInstance($form_data['action_id']);
if (method_exists($action, 'validateConfigurationForm')) {
$action
->validateConfigurationForm($form, $form_state);
}
}