You are here

protected static function ScssFontFamily::getValue in SCSS Compiler 1.0.x

Attempt to extract the value of the supplied element.

Parameters

array $element: The element for which to attempt to extract a value.

Return value

array|null The requested value from the supplied element.

2 calls to ScssFontFamily::getValue()
ScssFontFamily::processFontFamily in src/Element/ScssFontFamily.php
Process the element before it gets rendered in the form.
ScssFontFamily::validateFontFamily in src/Element/ScssFontFamily.php
Validate this element's value on form submission.

File

src/Element/ScssFontFamily.php, line 121

Class

ScssFontFamily
A form element to represent font families.

Namespace

Drupal\compiler_scss\Element

Code

protected static function getValue(array $element) {
  $value = $element['#value'] ?? NULL;
  return self::cleanValue($value);
}