function LanguageListBuilder::__construct
Same name in other branches
- 8.9.x core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::__construct()
- 10 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::__construct()
- 11.x 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\languageCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.