public function LanguageListBuilder::__construct in Drupal 8
Same name and namespace in other branches
- 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\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;
}