public function BlockBuildAlterEvent::getBlock in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x 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\BlockCode
public function getBlock() : BlockPluginInterface {
return $this->block;
}