You are here

public function BlocacheMetadata::getBlock in Blocache (Block Cache Control) 8

Gets the block entity.

Return value

\Drupal\block\BlockInterface|null Return the block entity or NULL.

File

src/BlocacheMetadata.php, line 130

Class

BlocacheMetadata
Class BlocacheMetadata.

Namespace

Drupal\blocache

Code

public function getBlock() {
  return $this->block;
}