LibraryDiscoveryCollector::getCid

protected LibraryDiscoveryCollector::getCid()

Gets the cache ID.

Return value

string

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;
}
doc_Drupal
2016-10-29 09:23:08
Comments
Leave a Comment

Please login to continue.