function IconCollector::resolveCacheMiss

Overrides CacheCollector::resolveCacheMiss

1 call to IconCollector::resolveCacheMiss()
IconCollector::get in core/lib/Drupal/Core/Theme/Icon/IconCollector.php
Gets value from the cache.

File

core/lib/Drupal/Core/Theme/Icon/IconCollector.php, line 61

Class

IconCollector
A CacheCollector implementation for building icons info.

Namespace

Drupal\Core\Theme\Icon

Code

public function resolveCacheMiss($key, array $definition = []) : ?IconDefinitionInterface {
    $icon = $this->getIconFromExtractor($key, $definition);
    $this->storage[$key] = $icon;
    $this->persist($key);
    return $icon;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.