You are here

public function PlaceBlockPageVariant::__construct in Drupal 8

Constructs a new PlaceBlockPageVariant.

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 $block_repository: The block repository.

\Drupal\Core\Entity\EntityViewBuilderInterface $block_view_builder: The block view builder.

string[] $block_list_cache_tags: The Block entity type list cache tags.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination.

Overrides BlockPageVariant::__construct

File

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

Class

PlaceBlockPageVariant
Allows blocks to be placed directly within a region.

Namespace

Drupal\block_place\Plugin\DisplayVariant

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, BlockRepositoryInterface $block_repository, EntityViewBuilderInterface $block_view_builder, array $block_list_cache_tags, ThemeManagerInterface $theme_manager, RedirectDestinationInterface $redirect_destination) {
  @trigger_error('The ' . __NAMESPACE__ . '\\PlaceBlockPageVariant is deprecated in drupal:8.8.0 and will be removed from drupal:9.0.0. See the change record for a list of alternatives. See https://www.drupal.org/node/3081957.', E_USER_DEPRECATED);
  parent::__construct($configuration, $plugin_id, $plugin_definition, $block_repository, $block_view_builder, $block_list_cache_tags);
  $this->themeManager = $theme_manager;
  $this->redirectDestination = $redirect_destination;
}