You are here

public function RobotFormBase::validateForm in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 config_entity_example/src/Form/RobotFormBase.php \Drupal\config_entity_example\Form\RobotFormBase::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

modules/config_entity_example/src/Form/RobotFormBase.php, line 170

Class

RobotFormBase
Class RobotFormBase.

Namespace

Drupal\config_entity_example\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);

  // Add code here to validate your config entity's form elements.
  // Nothing to do here.
}