public function WishlistController::__construct in Commerce Wishlist 8.3
Constructs a new WishlistController object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\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\commerce_wishlist\WishlistProviderInterface $wishlist_provider: The wishlist provider.
File
- src/
Controller/ WishlistController.php, line 80
Class
- WishlistController
- Provides the wishlist pages.
Namespace
Drupal\commerce_wishlist\ControllerCode
public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, RouteMatchInterface $route_match, WishlistProviderInterface $wishlist_provider) {
$this->configFactory = $config_factory;
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
$this->formBuilder = $form_builder;
$this->routeMatch = $route_match;
$this->wishlistProvider = $wishlist_provider;
}