function DesignTokenValue::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/DesignToken/Attribute/DesignTokenValue.php \Drupal\Core\Theme\DesignToken\Attribute\DesignTokenValue::__construct()

Constructor.

Parameters

string $id: The plugin ID.

\Drupal\Core\StringTranslation\TranslatableMarkup|null $label: (optional) The human-readable name of the plugin.

class-string|null $deriver: (optional) The deriver class.

Overrides Plugin::__construct

File

core/lib/Drupal/Core/Theme/DesignToken/Attribute/DesignTokenValue.php, line 26

Class

DesignTokenValue
Defines design token value attribute.

Namespace

Drupal\Core\Theme\DesignToken\Attribute

Code

public function __construct(public readonly string $id, public readonly ?TranslatableMarkup $label = NULL, public readonly ?string $deriver = NULL) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.