class IconExtractor
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Icon/Attribute/IconExtractor.php \Drupal\Core\Theme\Icon\Attribute\IconExtractor
The icon_extractor attribute.
@internal This API is experimental.
Attributes
#[\Attribute(\Attribute::TARGET_CLASS)]
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Core\Theme\Icon\Attribute\IconExtractor extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of IconExtractor
7 files declare their use of IconExtractor
- IconExtractorPluginManager.php in core/
lib/ Drupal/ Core/ Theme/ Icon/ IconExtractorPluginManager.php - IconExtractorTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconExtractorTest.php - PathExtractor.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ IconExtractor/ PathExtractor.php - SvgExtractor.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ IconExtractor/ SvgExtractor.php - SvgSpriteExtractor.php in core/
lib/ Drupal/ Core/ Theme/ Plugin/ IconExtractor/ SvgSpriteExtractor.php
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ Attribute/ IconExtractor.php, line 16
Namespace
Drupal\Core\Theme\Icon\AttributeView source
class IconExtractor extends AttributeBase {
/**
* Constructs a new IconExtractor instance.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $label
* (optional) The human-readable name of the plugin.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* (optional) A brief description of the plugin.
* @param class-string|null $deriver
* (optional) The deriver class.
* @param string[] $forms
* (optional) An array of form class names keyed by a string used as name
* for operation when using \Drupal\Core\Plugin\PluginWithFormsTrait.
*/
public function __construct(public readonly string $id, public readonly ?TranslatableMarkup $label, public readonly ?TranslatableMarkup $description = NULL, public readonly ?string $deriver = NULL, public readonly array $forms = []) {
}
}
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 | |
| IconExtractor::__construct | public | function | Constructs a new IconExtractor instance. | Overrides AttributeBase::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.