function IconCollector::set

Overrides CacheCollector::set

File

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

Class

IconCollector
A CacheCollector implementation for building icons info.

Namespace

Drupal\Core\Theme\Icon

Code

public function set($key, $value) : void {
    $this->lazyLoadCache();
    $this->storage[$key] = $value;
    $this->persist($key);
    // Chances are very small but the key might have been marked for deletion.
    unset($this->keysToRemove[$key]);
}

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