function BlockPageVariant::__construct
Same name and namespace in other branches
- 11.x core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::__construct()
- 10 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::__construct()
- 9 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::__construct()
- 8.9.x core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::__construct()
Constructs a new BlockPageVariant.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\block\BlockRepositoryInterface $blockRepository: The block repository.
\Drupal\Core\Entity\EntityViewBuilderInterface $blockViewBuilder: The block view builder.
string[] $blockListCacheTags: The Block entity type list cache tags.
Overrides ConfigurablePluginBase::__construct
File
-
core/
modules/ block/ src/ Plugin/ DisplayVariant/ BlockPageVariant.php, line 65
Class
- BlockPageVariant
- Provides a page display variant that decorates the main content with blocks.
Namespace
Drupal\block\Plugin\DisplayVariantCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, protected BlockRepositoryInterface $blockRepository, protected EntityViewBuilderInterface $blockViewBuilder, protected array $blockListCacheTags) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.