function PlaceBlockPageVariant::create

Overrides BlockPageVariant::create

File

core/modules/block_place/src/Plugin/DisplayVariant/PlaceBlockPageVariant.php, line 75

Class

PlaceBlockPageVariant
Allows blocks to be placed directly within a region.

Namespace

Drupal\block_place\Plugin\DisplayVariant

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('block.repository'), $container->get('entity_type.manager')
        ->getViewBuilder('block'), $container->get('entity_type.manager')
        ->getDefinition('block')
        ->getListCacheTags(), $container->get('theme.manager'), $container->get('redirect.destination'));
}

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