public function CountryListBuilder::__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/ CountryListBuilder.php, line 45
Class
- CountryListBuilder
- Provides a list controller for countrylist 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;
}