You are here

public function FontFamilyDataDefinition::__construct in SCSS Compiler 1.0.x

Constructs a new data definition object.

Parameters

array $values: (optional) If given, an array of initial values to set on the definition.

Overrides ListDataDefinition::__construct

File

src/Config/Schema/FontFamilyDataDefinition.php, line 24

Class

FontFamilyDataDefinition
A data definition that describes the items in a font family sequence.

Namespace

Drupal\compiler_scss\Config\Schema

Code

public function __construct(array $values = [], DataDefinitionInterface $item_definition = NULL, ...$args) {

  // Override the item list type to the 'string' data definition.
  parent::__construct($values, DataDefinition::create('string'), ...$args);
}