function IconDefinition::__construct
Constructor for IconDefinition.
Parameters
string $pack_id: The id of the icon pack.
string $icon_id: The id of the icon.
string $template: The template of the icon.
string|null $source: The source, url or path of the icon.
string|null $group: The group of the icon.
array $data: The additional data of the icon.
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconDefinition.php, line 37
Class
- IconDefinition
- Handle an icon definition.
Namespace
Drupal\Core\Theme\IconCode
private function __construct(string $pack_id, string $icon_id, string $template, ?string $source, ?string $group, array $data) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.