public function BlocacheMetadata::getOverrides in Blocache (Block Cache Control) 8
Gets the block cache metadata setted by the user.
Return value
array If the block entity has not been defined, it returns an empty array; otherwise, it returns an array with the following keys:
- max-age
- contexts
- tags
1 call to BlocacheMetadata::getOverrides()
- BlocacheMetadata::getMetadata in src/
BlocacheMetadata.php - Gets the cache metadata defined for the block.
File
- src/
BlocacheMetadata.php, line 120
Class
- BlocacheMetadata
- Class BlocacheMetadata.
Namespace
Drupal\blocacheCode
public function getOverrides() {
return $this->overrides;
}