You are here

public function FlagMappingListBuilder::__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.

string[] $countries:

string[] $flags:

Overrides EntityListBuilder::__construct

File

src/Entity/FlagMappingListBuilder.php, line 51

Class

FlagMappingListBuilder
Provides a listing of flag mapping entities.

Namespace

Drupal\flags\Entity

Code

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