You are here

public function SmartDateFormat::getCacheTagsToInvalidate in Smart Date 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()
  2. 8 src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()
  3. 3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()
  4. 3.0.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()
  5. 3.1.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()
  6. 3.2.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()
  7. 3.3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getCacheTagsToInvalidate()

Returns the cache tags that should be used to invalidate caches.

This will not return additional cache tags added through addCacheTags().

Return value

string[] Set of cache tags.

Overrides ConfigEntityBase::getCacheTagsToInvalidate

See also

\Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags()

\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()

File

src/Entity/SmartDateFormat.php, line 315

Class

SmartDateFormat
Defines the Smart date format entity.

Namespace

Drupal\smart_date\Entity

Code

public function getCacheTagsToInvalidate() {
  return [
    'rendered',
  ];
}