function ContactListBuilder::__construct
Same name in other branches
- 3.x modules/content_entity_example/src/Entity/Controller/ContactListBuilder.php \Drupal\content_entity_example\Entity\Controller\ContactListBuilder::__construct()
Constructs a new ContactListBuilder 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
-
modules/
content_entity_example/ src/ Entity/ Controller/ ContactListBuilder.php, line 47
Class
- ContactListBuilder
- Provides a list controller for content_entity_example entity.
Namespace
Drupal\content_entity_example\Entity\ControllerCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator) {
parent::__construct($entity_type, $storage);
$this->urlGenerator = $url_generator;
}