BlockVariantEvents::ADD_BLOCK

Same name in other branches
  1. 4.0.x src/Event/BlockVariantEvents.php \Drupal\ctools\Event\BlockVariantEvents::ADD_BLOCK

The name of the event triggered when a block is added to a variant.

This event allows modules to react to a block being added to a variant. The event listener method receives a \Drupal\ctools\Event\BlockVariantEvent instance.

File

src/Event/BlockVariantEvents.php, line 21

Class

BlockVariantEvents
Contains all events dispatched while manipulating blocks in a variant.

Namespace

Drupal\ctools\Event

Code

const ADD_BLOCK = 'block.add';