You are here

public function ConfigTranslationBlockListBuilder::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::__construct()

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

Overrides EntityListBuilder::__construct

File

core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php, line 26

Class

ConfigTranslationBlockListBuilder
Defines the config translation list builder for blocks.

Namespace

Drupal\config_translation\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeHandlerInterface $theme_handler) {
  parent::__construct($entity_type, $storage);
  $this->themes = $theme_handler
    ->listInfo();
}