function TestToolkit::validateConfigurationForm
Overrides ImageToolkitBase::validateConfigurationForm
File
- 
              core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ TestToolkit.php, line 108  
Class
- TestToolkit
 - Defines a Test toolkit for image manipulation within Drupal.
 
Namespace
Drupal\image_test\Plugin\ImageToolkitCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
  if ($form_state->getValue([
    'test',
    'test_parameter',
  ]) == 0) {
    $form_state->setErrorByName('test][test_parameter', $this->t('Test parameter should be different from 0.'));
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.