function ConfigEntityBase::getCacheTagsToInvalidate

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::getCacheTagsToInvalidate()
  2. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::getCacheTagsToInvalidate()
  3. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::getCacheTagsToInvalidate()

Overrides EntityBase::getCacheTagsToInvalidate

2 calls to ConfigEntityBase::getCacheTagsToInvalidate()
Block::postSave in core/modules/block/src/Entity/Block.php
Acts on a saved entity before the insert or update hook is invoked.
ImageStyle::flush in core/modules/image/src/Entity/ImageStyle.php
Flushes cached media for this style.
1 method overrides ConfigEntityBase::getCacheTagsToInvalidate()
DateFormat::getCacheTagsToInvalidate in core/lib/Drupal/Core/Datetime/Entity/DateFormat.php
Returns the cache tags that should be used to invalidate caches.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 414

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function getCacheTagsToInvalidate() {
    // Use cache tags that match the underlying config object's name.
    // @see \Drupal\Core\Config\ConfigBase::getCacheTags()
    return [
        'config:' . $this->getConfigDependencyName(),
    ];
}

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