You are here

public function BlockBuildAlterEvent::__construct in Hook Event Dispatcher 8.2

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

BlockBuildAlterEvent constructor.

Parameters

array $build: The build array.

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

File

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

Class

BlockBuildAlterEvent
Class BlockBuildAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Block

Code

public function __construct(array &$build, BlockPluginInterface $block) {
  $this->build =& $build;
  $this->block = $block;
}