You are here

public static function ContextGroupsBlockPageVariant::create in Context groups 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/DisplayVariant/ContextGroupsBlockPageVariant.php \Drupal\context_groups\Plugin\DisplayVariant\ContextGroupsBlockPageVariant::create()

File

src/Plugin/DisplayVariant/ContextGroupsBlockPageVariant.php, line 42

Class

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

Namespace

Drupal\context_groups\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('context.manager'), $container
    ->get('context_groups.manager'));
}