You are here

public function LanguageListBuilder::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::__construct()
  2. 9 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::__construct()

Constructs a new LanguageListBuilder object.

Parameters

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

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

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

Overrides DraggableListBuilder::__construct

File

core/modules/language/src/LanguageListBuilder.php, line 75

Class

LanguageListBuilder
Defines a class to build a listing of language entities.

Namespace

Drupal\language

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, MessengerInterface $messenger) {
  parent::__construct($entity_type, $storage);
  $this->languageManager = $language_manager;
  $this->configFactory = $config_factory;
  $this->messenger = $messenger;
}