You are here

private function BlocacheMetadata::isBlock in Blocache (Block Cache Control) 8

Checks whether block entity has been setted.

Return value

bool Returns TRUE if the block entity has been setted; FALSE, otherwise.

3 calls to BlocacheMetadata::isBlock()
BlocacheMetadata::isOverridden in src/BlocacheMetadata.php
Checks whether block cache metadata has been overridden.
BlocacheMetadata::setOverrides in src/BlocacheMetadata.php
Set the overwritten cache metadata.
BlocacheMetadata::unsetOverrides in src/BlocacheMetadata.php
Unset the overwritten cache metadata.

File

src/BlocacheMetadata.php, line 218

Class

BlocacheMetadata
Class BlocacheMetadata.

Namespace

Drupal\blocache

Code

private function isBlock() {
  return $this->block instanceof BlockInterface;
}