You are here

public static function BlockPageVariant::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::create()
  2. 9 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::create()

File

core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php, line 95

Class

BlockPageVariant
Provides a page display variant that decorates the main content with blocks.

Namespace

Drupal\block\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());
}