public function AjaxAddToCartPopupSubscriber::__construct in Commerce Ajax Add to Cart 8
Constructs a new AjaxAddToCartPopupSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Used to display the rendered product_variation entity.
File
- modules/
dc_ajax_add_cart_popup/ src/ EventSubscriber/ AjaxAddToCartPopupSubscriber.php, line 40
Class
- AjaxAddToCartPopupSubscriber
- Event subscriber to display a popup when items are added to cart via AJAX.
Namespace
Drupal\dc_ajax_add_cart_popup\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}