ConfigTranslationBlockListBuilder::__construct

public ConfigTranslationBlockListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeHandlerInterface $theme_handler)

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();
}
doc_Drupal
2016-10-29 08:54:41
Comments
Leave a Comment

Please login to continue.