public function CityListBuilder::__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/ CityListBuilder.php, line 45
Class
- CityListBuilder
- Provides a list controller for citylist entity.
Namespace
Drupal\country_state_city\Entity\ControllerCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator) {
parent::__construct($entity_type, $storage);
$this->urlGenerator = $url_generator;
}