You are here

public function BlockBuildAlterEvent::getBlock in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/Event/Block/BlockBuildAlterEvent.php \Drupal\core_event_dispatcher\Event\Block\BlockBuildAlterEvent::getBlock()

Get the block.

Return value

\Drupal\Core\Block\BlockPluginInterface The block object.

File

modules/core_event_dispatcher/src/Event/Block/BlockBuildAlterEvent.php, line 57

Class

BlockBuildAlterEvent
Class BlockBuildAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Block

Code

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