You are here

public function ConfigPagesBlock::__construct in Config Pages 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::__construct()
  2. 8 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::__construct()

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/ConfigPagesBlock.php, line 31

Class

ConfigPagesBlock
Provides a generic ConfigPages block.

Namespace

Drupal\config_pages\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityDisplayRepositoryInterface $entity_display_repository, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
  $this->entity_display_repository = $entity_display_repository;
  $this->entity_type_manager = $entity_type_manager;
}