public function PetListBuilder::__construct in Previewable email templates 8.4
Same name and namespace in other branches
- 8 src/Controller/PetListBuilder.php \Drupal\pet\Controller\PetListBuilder::__construct()
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.
\Drupal\Core\Session\AccountProxyInterface $current_user:
Overrides EntityListBuilder::__construct
File
- src/
Controller/ PetListBuilder.php, line 33
Class
- PetListBuilder
- Class for pet listing page.
Namespace
Drupal\pet\ControllerCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, AccountProxyInterface $current_user) {
parent::__construct($entity_type, $storage);
$this->currentUser = $current_user;
}