You are here

public function BlockEventVariables::getBlock in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Variables/BlockEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\BlockEventVariables::getBlock()

Get the block.

Return value

\Drupal\block\BlockInterface The block.

File

modules/preprocess_event_dispatcher/src/Variables/BlockEventVariables.php, line 19

Class

BlockEventVariables
Class BlockEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

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