function LibraryDiscoveryCollector::getCid

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php \Drupal\Core\Asset\LibraryDiscoveryCollector::getCid()
  2. 8.9.x core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php \Drupal\Core\Asset\LibraryDiscoveryCollector::getCid()
  3. 10 core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php \Drupal\Core\Asset\LibraryDiscoveryCollector::getCid()

Overrides CacheCollector::getCid

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php, line 54

Class

LibraryDiscoveryCollector
A CacheCollector implementation for building library extension info.

Namespace

Drupal\Core\Asset

Code

protected function getCid() {
    if (!isset($this->cid)) {
        $this->cid = 'library_info:' . $this->themeManager
            ->getActiveTheme()
            ->getName();
    }
    return $this->cid;
}

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