You are here

protected function DomainConfigLibraryDiscoveryCollector::getCid in Domain Access 8

Gets the cache ID.

Return value

string

Overrides LibraryDiscoveryCollector::getCid

File

domain_config/src/DomainConfigLibraryDiscoveryCollector.php, line 35

Class

DomainConfigLibraryDiscoveryCollector
Class DomainConfigLibraryDiscoveryCollector.

Namespace

Drupal\domain_config

Code

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