public function BaseBlockEvent::__construct in Hook Event Dispatcher 8
BaseBlockEvent constructor.
Parameters
array $build: The build array.
\Drupal\Core\Block\BlockPluginInterface $block: The block object.
File
- src/
Event/ Block/ BaseBlockEvent.php, line 35
Class
- BaseBlockEvent
- Class BaseBlockEvent.
Namespace
Drupal\hook_event_dispatcher\Event\BlockCode
public function __construct(array &$build, BlockPluginInterface $block) {
$this->build =& $build;
$this->block = $block;
}