You are here

public function ChannelListBuilder::__construct in Entity Share 8

Same name and namespace in other branches
  1. 8.3 modules/entity_share_server/src/ChannelListBuilder.php \Drupal\entity_share_server\ChannelListBuilder::__construct()
  2. 8.2 modules/entity_share_server/src/ChannelListBuilder.php \Drupal\entity_share_server\ChannelListBuilder::__construct()

Constructs a new ActionListBuilder object.

Parameters

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

\Drupal\Core\Entity\EntityStorageInterface $storage: The action storage.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

\Drupal\Core\Entity\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

Overrides EntityListBuilder::__construct

File

modules/entity_share_server/src/ChannelListBuilder.php, line 55

Class

ChannelListBuilder
Provides a listing of Channel entities.

Namespace

Drupal\entity_share_server

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeRepositoryInterface $entity_type_repository, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_type, $storage);
  $this->bundleInfos = $entity_type_bundle_info
    ->getAllBundleInfo();
  $this->entityTypeLabels = $entity_type_repository
    ->getEntityTypeLabels();
  $this->languages = $language_manager
    ->getLanguages(LanguageInterface::STATE_ALL);
}