You are here

protected function MiconIconManager::loadIcons in Micon 2.x

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

Load all available micon icons.

Return value

array List of \Drupal\micon\Entity\Micon entities to store in cache.

1 call to MiconIconManager::loadIcons()
MiconIconManager::getIcons in src/MiconIconManager.php
Get all available icons.

File

src/MiconIconManager.php, line 93

Class

MiconIconManager
Class MiconIconManager.

Namespace

Drupal\micon

Code

protected function loadIcons() {
  $definitions = [];
  foreach (Micon::loadActive() as $micon) {
    $definitions[$micon
      ->id()] = $micon
      ->getIcons();
  }
  return $definitions;
}