public function BlocacheMetadata::getDefaults in Blocache (Block Cache Control) 8
Gets the default cache metadata for the block.
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::getDefaults()
- BlocacheMetadata::getMetadata in src/
BlocacheMetadata.php - Gets the cache metadata defined for the block.
File
- src/
BlocacheMetadata.php, line 106
Class
- BlocacheMetadata
- Class BlocacheMetadata.
Namespace
Drupal\blocacheCode
public function getDefaults() {
return $this->defaults;
}