IconExtractor.php

Namespace

Drupal\Core\Theme\Icon\Attribute

File

core/lib/Drupal/Core/Theme/Icon/Attribute/IconExtractor.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Theme\Icon\Attribute;

use Drupal\Component\Plugin\Attribute\AttributeBase;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * The icon_extractor attribute.
 *
 * @internal
 *   This API is experimental.
 */
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 = []) {
    }

}

Classes

Title Deprecated Summary
IconExtractor The icon_extractor attribute.

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