You are here

public function MiconIconManager::__construct in Micon 2.x

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

Constructor.

File

src/MiconIconManager.php, line 38

Class

MiconIconManager
Class MiconIconManager.

Namespace

Drupal\micon

Code

public function __construct(EntityTypeManagerInterface $entity_manager, CacheBackendInterface $cache_backend) {
  $this->entityManager = $entity_manager;
  $this
    ->setCacheBackend($cache_backend, 'micon.icons', [
    'micon.icons',
  ]);
}