You are here

public function MiconIconManager::getIcons in Micon 2.x

Same name and namespace in other branches
  1. 8 src/MiconIconManager.php \Drupal\micon\MiconIconManager::getIcons()

Get all available icons.

Return value

array Nested list of \Drupal\micon\Entity\Micon entities grouped by package id.

1 call to MiconIconManager::getIcons()
MiconIconManager::getFlattenedIcons in src/MiconIconManager.php
Get a flat list of all icons.

File

src/MiconIconManager.php, line 64

Class

MiconIconManager
Class MiconIconManager.

Namespace

Drupal\micon

Code

public function getIcons() {
  $icons = $this
    ->getCachedDefinitions();
  if (!isset($icons)) {
    $icons = $this
      ->loadIcons();
    $this
      ->setCachedPackages($icons);
  }
  return $icons;
}