DesignTokenValue.php
Namespace
Drupal\Core\Theme\DesignToken\AttributeFile
-
core/
lib/ Drupal/ Core/ Theme/ DesignToken/ Attribute/ DesignTokenValue.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Core\Theme\DesignToken\Attribute;
use Drupal\Component\Plugin\Attribute\Plugin;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Defines design token value attribute.
*/
class DesignTokenValue extends Plugin {
/**
* Constructor.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $label
* (optional) The human-readable name of the plugin.
* @param class-string|null $deriver
* (optional) The deriver class.
*/
public function __construct(public readonly string $id, public readonly ?TranslatableMarkup $label = NULL, public readonly ?string $deriver = NULL) {
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| DesignTokenValue | Defines design token value attribute. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.