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

Breadcrumb

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

function IconPackManagerInterface::getIcon

Get definition of a specific icon.

Parameters

string $icon_full_id: The ID of the icon to retrieve, include pack id.

Return value

\Drupal\Core\Theme\Icon\IconDefinitionInterface|null Icon definition.

1 method overrides IconPackManagerInterface::getIcon()
IconPackManager::getIcon in core/lib/Drupal/Core/Theme/Icon/Plugin/IconPackManager.php
Get definition of a specific icon.

File

core/lib/Drupal/Core/Theme/Icon/Plugin/IconPackManagerInterface.php, line 39

Class

IconPackManagerInterface
Interface for icon pack manager.

Namespace

Drupal\Core\Theme\Icon\Plugin

Code

public function getIcon(string $icon_full_id) : ?IconDefinitionInterface;
RSS feed
Powered by Drupal