function Serializer::getCacheContexts
Same name in other branches
- 9 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::getCacheContexts()
- 8.9.x core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::getCacheContexts()
- 10 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::getCacheContexts()
Overrides CacheableDependencyInterface::getCacheContexts
File
-
core/
modules/ rest/ src/ Plugin/ views/ style/ Serializer.php, line 169
Class
- Serializer
- The style plugin for serialized output formats.
Namespace
Drupal\rest\Plugin\views\styleCode
public function getCacheContexts() {
return [
'request_format',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.