public function RetinaImageEffectTrait::validateConfigurationForm in Retina Images 8
File
- src/
RetinaImageEffectTrait.php, line 107 - Provides shared helpers for all retina image effects.
Class
- RetinaImageEffectTrait
- Provides shared helpers for all retina image effects.
Namespace
Drupal\retina_imagesCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
if (!is_numeric($form_state
->getValue('retina_multiplier')) && $form_state
->getValue('retinafy')) {
$form_state
->setError($form['data']['retina_multiplier'], $this
->t("Multiplier must be a valid number, such as '2' or '1.5'"));
}
parent::validateConfigurationForm($form, $form_state);
}