public function GroupListBuilder::__construct in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/Controller/GroupListBuilder.php \Drupal\group\Entity\Controller\GroupListBuilder::__construct()
Constructs a new GroupListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Symfony\Component\Routing\RouterInterface $router: The router.
Overrides EntityListBuilder::__construct
File
- src/
Entity/ Controller/ GroupListBuilder.php, line 67
Class
- GroupListBuilder
- Provides a list controller for group entities.
Namespace
Drupal\group\Entity\ControllerCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, RedirectDestinationInterface $redirect_destination, AccountInterface $current_user, ModuleHandlerInterface $module_handler, RouterInterface $router) {
parent::__construct($entity_type, $storage);
$this->redirectDestination = $redirect_destination;
$this->currentUser = $current_user;
$this->moduleHandler = $module_handler;
$this->router = $router;
}