You are here

public static function ScssFontFamily::validateFontFamily in SCSS Compiler 1.0.x

Validate this element's value on form submission.

Parameters

array $element: The element that should be validated.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

array $complete_form: The complete form.

File

src/Element/ScssFontFamily.php, line 213

Class

ScssFontFamily
A form element to represent font families.

Namespace

Drupal\compiler_scss\Element

Code

public static function validateFontFamily(array &$element, FormStateInterface $form_state, array &$complete_form) {

  // Store the sanitized element value in the form state.
  $form_state
    ->setValueForElement($element, self::getValue($element));
}