You are here

public static function ImageEffectsColor::validateImageEffectsColor in Image Effects 8

Same name and namespace in other branches
  1. 8.3 src/Element/ImageEffectsColor.php \Drupal\image_effects\Element\ImageEffectsColor::validateImageEffectsColor()
  2. 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\Element

Code

public static function validateImageEffectsColor(&$element, FormStateInterface $form_state, &$complete_form) {
  $form_state
    ->setValueForElement($element, $element['#value']);
}