function CachePluginBase::alterCacheMetadata

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::alterCacheMetadata()
  2. 10 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::alterCacheMetadata()
  3. 11.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::alterCacheMetadata()

Alters the cache metadata of a display upon saving a view.

Parameters

\Drupal\Core\Cache\CacheableMetadata $cache_metadata: The cache metadata.

File

core/modules/views/src/Plugin/views/cache/CachePluginBase.php, line 303

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

public function alterCacheMetadata(CacheableMetadata $cache_metadata) {
}

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