You are here

public function BlockEventVariables::getBlock in Hook Event Dispatcher 8

Get the block.

Return value

\Drupal\block\Entity\Block The block.

File

src/Event/Preprocess/Variables/BlockEventVariables.php, line 16

Class

BlockEventVariables
Class BlockEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

public function getBlock() {
  return $this->variables['block'];
}