public function RobotFormBase::validateForm in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/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
- config_entity_example/
src/ Form/ RobotFormBase.php, line 170
Class
- RobotFormBase
- Class RobotFormBase.
Namespace
Drupal\config_entity_example\FormCode
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.
}