public function UsageEventSubscriber::__construct in Bynder 8
UsageEventSubscriber constructor.
Parameters
\Drupal\bynder\BynderApiInterface $bynder_api_service: Bynder api service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- src/
EventSubscriber/ UsageEventSubscriber.php, line 55
Class
- UsageEventSubscriber
- Listens for the usage events from Entity Usage module.
Namespace
Drupal\bynder\EventSubscriberCode
public function __construct(BynderApiInterface $bynder_api_service, EntityTypeManagerInterface $entity_type_manager, RequestStack $request_stack) {
$this->bynderApi = $bynder_api_service;
$this->entityTypeManager = $entity_type_manager;
$this->requestStack = $request_stack;
}