function ComputedString::getCacheContexts

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::getCacheContexts()
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::getCacheContexts()
  3. 10 core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php \Drupal\entity_test\TypedData\ComputedString::getCacheContexts()

Overrides CacheableDependencyInterface::getCacheContexts

File

core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php, line 49

Class

ComputedString
A computed property for test strings.

Namespace

Drupal\entity_test\TypedData

Code

public function getCacheContexts() {
    return [
        'request_format',
    ];
}

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