You are here

public function EntityReferenceActionsHandler::__construct in Entity reference actions 1.x

EntityReferenceActionsHandler constructor.

Parameters

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

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

\Drupal\Component\Uuid\UuidInterface $uuidGenerator: The UUID generator service.

\Symfony\Component\HttpKernel\HttpKernelInterface $httpKernel: The HTTP kernel service.

File

src/EntityReferenceActionsHandler.php, line 109

Class

EntityReferenceActionsHandler
Provides the form functions to call actions on referenced entities.

Namespace

Drupal\entity_reference_actions

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountProxyInterface $currentUser, RequestStack $requestStack, UuidInterface $uuidGenerator, HttpKernelInterface $httpKernel) {
  $this->entityTypeManager = $entityTypeManager;
  $this->currentUser = $currentUser;
  $this->requestStack = $requestStack;
  $this->uuidGenerator = $uuidGenerator;
  $this->httpKernel = $httpKernel;
}