You are here

public function LanguageFlagMappingListBuilder::__construct in Flags 8

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.

\Drupal\flags\FullLanguageManagerInterface $fullLanguageManager:

string[] $flags: Array of all available flags with their names.

Overrides EntityListBuilder::__construct

File

src/Entity/LanguageFlagMappingListBuilder.php, line 56

Class

LanguageFlagMappingListBuilder
Provides a listing of flag mapping entities.

Namespace

Drupal\flags\Entity

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, FullLanguageManagerInterface $fullLanguageManager, $flags) {
  parent::__construct($entity_type, $storage);
  $this->languageManager = $fullLanguageManager;
  $this->flags = $flags;
}