function ComputedString::getCacheTags

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::getCacheTags()
  2. 9 core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::getCacheTags()
  3. 8.9.x core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::getCacheTags()
  4. main core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::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/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php, line 42

Class

ComputedString
A computed property for test strings.

Namespace

Drupal\entity_test\TypedData

Code

public function getCacheTags() {
  return [
    'you_are_it',
    'no_tag_backs',
  ];
}

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