You are here

public function BlockContentGetDependencyEvent::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/block_content/src/Event/BlockContentGetDependencyEvent.php \Drupal\block_content\Event\BlockContentGetDependencyEvent::__construct()

BlockContentGetDependencyEvent constructor.

Parameters

\Drupal\block_content\BlockContentInterface $blockContent: The block content entity.

File

core/modules/block_content/src/Event/BlockContentGetDependencyEvent.php, line 36

Class

BlockContentGetDependencyEvent
Block content event to allow setting an access dependency.

Namespace

Drupal\block_content\Event

Code

public function __construct(BlockContentInterface $blockContent) {
  $this->blockContent = $blockContent;
}