function IconExtractor::__construct
Constructs a new IconExtractor instance.
Parameters
string $id: The plugin ID.
\Drupal\Core\StringTranslation\TranslatableMarkup|null $label: (optional) The human-readable name of the plugin.
\Drupal\Core\StringTranslation\TranslatableMarkup|null $description: (optional) A brief description of the plugin.
class-string|null $deriver: (optional) The deriver class.
string[] $forms: (optional) An array of form class names keyed by a string used as name for operation when using \Drupal\Core\Plugin\PluginWithFormsTrait.
Overrides AttributeBase::__construct
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ Attribute/ IconExtractor.php, line 34
Class
- IconExtractor
- The icon_extractor attribute.
Namespace
Drupal\Core\Theme\Icon\AttributeCode
public function __construct(string $id, ?TranslatableMarkup $label, ?TranslatableMarkup $description = NULL, ?string $deriver = NULL, array $forms = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.