You are here

public function MiconIconManager::getFlattenedIcons in Micon 8

Same name and namespace in other branches
  1. 2.x src/MiconIconManager.php \Drupal\micon\MiconIconManager::getFlattenedIcons()

Get a flat list of all icons.

Return value

array Flat list of \Drupal\micon\Entity\Micon entities.

1 call to MiconIconManager::getFlattenedIcons()
MiconIconManager::getIconMatch in src/MiconIconManager.php
Match an icon_id against the Micon package icon definitions.

File

src/MiconIconManager.php, line 79

Class

MiconIconManager
Class MiconIconManager.

Namespace

Drupal\micon

Code

public function getFlattenedIcons() {
  $icons = [];
  foreach ($this
    ->getIcons() as $package_icons) {
    $icons += $package_icons;
  }
  return $icons;
}