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