You are here

public function BlazyManagerBase::getCacheId in Blazy 7

Returns the cache id based on few generic setting values.

File

src/BlazyManagerBase.php, line 80

Class

BlazyManagerBase
Implements BlazyManagerInterface.

Namespace

Drupal\blazy

Code

public function getCacheId(array $settings = []) {
  $keys = isset($settings['cache_metadata']['keys']) ? $settings['cache_metadata']['keys'] : [
    $settings['id'],
  ];
  $keys[] = count(array_filter($settings));
  return implode(':', $keys);
}