public static function ImageEffectsColor::validateImageEffectsColor in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Element/ImageEffectsColor.php \Drupal\image_effects\Element\ImageEffectsColor::validateImageEffectsColor()
- 8.2 src/Element/ImageEffectsColor.php \Drupal\image_effects\Element\ImageEffectsColor::validateImageEffectsColor()
Form element validation handler.
File
- src/
Element/ ImageEffectsColor.php, line 167
Class
- ImageEffectsColor
- Implements a form element to enable capturing color information.
Namespace
Drupal\image_effects\ElementCode
public static function validateImageEffectsColor(&$element, FormStateInterface $form_state, &$complete_form) {
$form_state
->setValueForElement($element, $element['#value']);
}