public function Context::getCacheTags in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::getCacheTags()
- 10 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::getCacheTags()
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides CacheableDependencyInterface::getCacheTags
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php, line 160
Class
- Context
- A Drupal specific context wrapper class.
Namespace
Drupal\Core\Plugin\ContextCode
public function getCacheTags() {
return $this->cacheabilityMetadata
->getCacheTags();
}