You are here

public function WishlistItemController::__construct in Commerce Wishlist 8.3

Constructs a new WishlistController object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

src/Controller/WishlistItemController.php, line 65

Class

WishlistItemController
Provides the wishlist item pages.

Namespace

Drupal\commerce_wishlist\Controller

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, RouteMatchInterface $route_match, TranslationInterface $string_translation) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->formBuilder = $form_builder;
  $this->routeMatch = $route_match;
  $this->stringTranslation = $string_translation;
}