You are here

public function BlockVariantEvent::__construct in Chaos Tool Suite (ctools) 8.3

BlockVariantEvent constructor.

Parameters

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

\Drupal\ctools\Plugin\BlockVariantInterface $variant: The variant plugin.

File

src/Event/BlockVariantEvent.php, line 33

Class

BlockVariantEvent

Namespace

Drupal\ctools\Event

Code

public function __construct(BlockPluginInterface $block, BlockVariantInterface $variant) {
  $this->block = $block;
  $this->variant = $variant;
}