You are here

public function StateListBuilder::__construct in Country, State and City Fields 8

Constructs a new SliderListBuilder object.

Parameters

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

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

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator.

Overrides EntityListBuilder::__construct

File

src/Entity/Controller/StateListBuilder.php, line 45

Class

StateListBuilder
Provides a list controller for statelist entity.

Namespace

Drupal\country_state_city\Entity\Controller

Code

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