function ConfigEntityBase::getCacheTagsToInvalidate

Overrides EntityBase::getCacheTagsToInvalidate

2 calls to ConfigEntityBase::getCacheTagsToInvalidate()
Block::postSave in core/modules/block/src/Entity/Block.php
ImageStyle::flush in core/modules/image/src/Entity/ImageStyle.php
1 method overrides ConfigEntityBase::getCacheTagsToInvalidate()
DateFormat::getCacheTagsToInvalidate in core/lib/Drupal/Core/Datetime/Entity/DateFormat.php

File

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

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.