You are here

public function FileEntity::getCacheTags in File Entity (fieldable files) 8.2

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 EntityBase::getCacheTags

File

src/Entity/FileEntity.php, line 495

Class

FileEntity
Replace for the core file entity class.

Namespace

Drupal\file_entity\Entity

Code

public function getCacheTags() {

  // Assume that files are only embedded in other entities and don't have
  // their own cache tags.
  // @todo Make this configurable.
  return [];
}