public function SubscriptionListBuilder::__construct in Mailing List 8
Contruct a new SubscriptionListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The action storage.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder object.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides EntityListBuilder::__construct
File
- src/
SubscriptionListBuilder.php, line 57
Class
- SubscriptionListBuilder
- Defines a class to build a listing of subscriptions.
Namespace
Drupal\mailing_listCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, AccountInterface $current_user, FormBuilderInterface $form_builder, RequestStack $request_stack) {
parent::__construct($entity_type, $storage);
$this->currentUser = $current_user;
$this->formBuilder = $form_builder;
$this->requestStack = $request_stack;
}