protected function FontFamily::getElementDefinition in SCSS Compiler 1.0.x
Gets data definition object for contained element.
Parameters
int|string $key: Property name or index of the element.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface
Overrides ArrayElement::getElementDefinition
File
- src/
Config/ Schema/ FontFamily.php, line 22
Class
- FontFamily
- A config schema type used to represent a font family sequence.
Namespace
Drupal\compiler_scss\Config\SchemaCode
protected function getElementDefinition($key) {
$value = $this->value[$key] ?? NULL;
$definition = [
'type' => 'string',
];
return $this
->buildDataDefinition($definition, $value, $key);
}