You are here

protected function MiconIconManager::setCachedPackages in Micon 8

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

Sets a cache of Micon icons.

Parameters

array $icons: List of icons to store in cache.

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

File

src/MiconIconManager.php, line 150

Class

MiconIconManager
Class MiconIconManager.

Namespace

Drupal\micon

Code

protected function setCachedPackages(array $icons) {
  $this
    ->cacheSet($this->cacheKey, $icons, Cache::PERMANENT, $this->cacheTags);
  $this->icons = $icons;
}