function IconExtractorInterface::createIcon

Create the icon definition from an extractor plugin.

Parameters

string $icon_id: The id of the icon.

string|null $source: The source, url or path of the icon.

string|null $group: The group of the icon.

array|null $data: The icon data.

Return value

\Drupal\Core\Theme\Icon\IconDefinitionInterface The icon definition.

See also

\Drupal\Core\Theme\Icon\IconDefinition::create()

1 method overrides IconExtractorInterface::createIcon()
IconExtractorBase::createIcon in core/lib/Drupal/Core/Theme/Icon/IconExtractorBase.php
Create the icon definition from an extractor plugin.

File

core/lib/Drupal/Core/Theme/Icon/IconExtractorInterface.php, line 66

Class

IconExtractorInterface
Interface for icon_extractor plugins.

Namespace

Drupal\Core\Theme\Icon

Code

public function createIcon(string $icon_id, ?string $source = NULL, ?string $group = NULL, ?array $data = NULL) : IconDefinitionInterface;

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