You are here

public function AppCredentialEventSubscriber::__construct in Apigee Edge 8

AppCredentialEventSubscriber constructor.

Parameters

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

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

\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger channel.

File

modules/apigee_edge_actions/src/EventSubscriber/AppCredentialEventSubscriber.php, line 82

Class

AppCredentialEventSubscriber
Events for an API Product being added to an app already exist.

Namespace

Drupal\apigee_edge_actions\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, AccountInterface $current_user, LoggerChannelInterface $logger) {
  $this->entityTypeManger = $entity_type_manager;
  $this->logger = $logger;
  $this->eventDispatcher = $event_dispatcher;
  $this->currentUser = $current_user;
}