function BlockVariantEvent::__construct

Same name in other branches
  1. 8.x-3.x src/Event/BlockVariantEvent.php \Drupal\ctools\Event\BlockVariantEvent::__construct()

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 36

Class

BlockVariantEvent

Namespace

Drupal\ctools\Event

Code

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