class DesignTokenValue
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/DesignToken/Attribute/DesignTokenValue.php \Drupal\Core\Theme\DesignToken\Attribute\DesignTokenValue
Defines design token value attribute.
Attributes
#[\Attribute(\Attribute::TARGET_CLASS)]
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
- class \Drupal\Core\Theme\DesignToken\Attribute\DesignTokenValue extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of DesignTokenValue
6 files declare their use of DesignTokenValue
- DesignTokenValuePluginManager.php in core/
lib/ Drupal/ Core/ Theme/ DesignToken/ DesignTokenValuePluginManager.php - Dimension.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Dimension.php - FontFamily.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontFamily.php - FontWeight.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ FontWeight.php - Number.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ DesignTokenValue/ Number.php
File
-
core/
lib/ Drupal/ Core/ Theme/ DesignToken/ Attribute/ DesignTokenValue.php, line 13
Namespace
Drupal\Core\Theme\DesignToken\AttributeView source
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) {
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
|---|---|---|---|---|---|
| AttributeBase::$class | protected | property | The class used for this attribute class. | ||
| AttributeBase::$dependencies | protected | property | The dependencies for the attribute class. | ||
| AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
| AttributeBase::get | public | function | Gets the value of an attribute. | Overrides AttributeInterface::get | 7 |
| AttributeBase::getClass | public | function | Gets the class of the attribute class. | Overrides AttributeInterface::getClass | 1 |
| AttributeBase::getDependencies | public | function | Gets the dependencies for this attribute class. | Overrides AttributeInterface::getDependencies | |
| AttributeBase::getId | public | function | Gets the unique ID for this attribute class. | Overrides AttributeInterface::getId | |
| AttributeBase::getProvider | public | function | Gets the name of the provider of the attribute class. | Overrides AttributeInterface::getProvider | |
| AttributeBase::setClass | public | function | Sets the class of the attributed class. | Overrides AttributeInterface::setClass | 1 |
| AttributeBase::setDependencies | public | function | Sets the dependencies for this attribute class. | Overrides AttributeInterface::setDependencies | |
| AttributeBase::setProvider | public | function | Sets the name of the provider of the attribute class. | Overrides AttributeInterface::setProvider | |
| DesignTokenValue::__construct | public | function | Constructor. | Overrides Plugin::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.