function ConfigTranslationBlockListBuilder::__construct

Same name in other branches
  1. 8.9.x core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::__construct()
  2. 10 core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::__construct()
  3. 11.x core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::__construct()

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.