function BlockPlaceEventSubscriber::getSubscribedEvents

File

core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 61

Class

BlockPlaceEventSubscriber

Namespace

Drupal\block_place\EventSubscriber

Code

public static function getSubscribedEvents() {
    // Set a very low priority, so that it runs last.
    $events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = [
        'onBlockPageDisplayVariantSelected',
        -1000,
    ];
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.