class IconExtractor

The icon_extractor attribute.

@internal This API is experimental.

Hierarchy

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

... See full list

File

core/lib/Drupal/Core/Theme/Icon/Attribute/IconExtractor.php, line 16

Namespace

Drupal\Core\Theme\Icon\Attribute
View 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(string $id, ?TranslatableMarkup $label, ?TranslatableMarkup $description = NULL, ?string $deriver = NULL, 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::$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::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::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.