function ImageEffectFormBase::validateForm

Same name in other branches
  1. 9 core/modules/image/src/Form/ImageEffectFormBase.php \Drupal\image\Form\ImageEffectFormBase::validateForm()
  2. 10 core/modules/image/src/Form/ImageEffectFormBase.php \Drupal\image\Form\ImageEffectFormBase::validateForm()
  3. 11.x core/modules/image/src/Form/ImageEffectFormBase.php \Drupal\image\Form\ImageEffectFormBase::validateForm()

Overrides FormBase::validateForm

File

core/modules/image/src/Form/ImageEffectFormBase.php, line 104

Class

ImageEffectFormBase
Provides a base form for image effects.

Namespace

Drupal\image\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
    // The image effect configuration is stored in the 'data' key in the form,
    // pass that through for validation.
    $this->imageEffect
        ->validateConfigurationForm($form['data'], SubformState::createForSubform($form['data'], $form, $form_state));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.