Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IconPackManager.php

function IconPackManager::getIcon

Overrides IconPackManagerInterface::getIcon

File

core/lib/Drupal/Core/Theme/Icon/Plugin/IconPackManager.php, line 260

Class

IconPackManager
Defines an icon pack plugin manager to deal with icons.

Namespace

Drupal\Core\Theme\Icon\Plugin

Code

public function getIcon(string $icon_full_id) : ?IconDefinitionInterface {
    return $this->iconCollector
        ->get($icon_full_id, $this->getDefinitions());
}
RSS feed
Powered by Drupal