function TestToolkit::validateConfigurationForm
Same name in other branches
- 8.9.x core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php \Drupal\image_test\Plugin\ImageToolkit\TestToolkit::validateConfigurationForm()
- 10 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php \Drupal\image_test\Plugin\ImageToolkit\TestToolkit::validateConfigurationForm()
- 11.x core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php \Drupal\image_test\Plugin\ImageToolkit\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.