public function MetatagViewsCacheWrapper::alterCacheMetadata in Metatag 8
Alters the cache metadata of a display upon saving a view.
Parameters
\Drupal\Core\Cache\CacheableMetadata $cache_metadata: The cache metadata.
Overrides CachePluginBase::alterCacheMetadata
File
- metatag_views/
src/ MetatagViewsCacheWrapper.php, line 165
Class
- MetatagViewsCacheWrapper
- This class wraps a Views cache plugin.
Namespace
Drupal\metatag_viewsCode
public function alterCacheMetadata(CacheableMetadata $cache_metadata) {
$this->plugin
->alterCacheMetadata($cache_metadata);
}