public function ApplicableTransactionAccess::__construct in Transaction 8
ApplicableTransactionAccess constructor.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Access/ ApplicableTransactionAccess.php, line 52
Class
- ApplicableTransactionAccess
- Checks access of applicable entity to transaction type.
Namespace
Drupal\transaction\AccessCode
public function __construct(RouteMatchInterface $route_match, RequestStack $request_stack, EntityTypeManagerInterface $entity_type_manager) {
$this->currentRouteMatch = $route_match;
$this->requestStack = $request_stack;
$this->entityTypeManager = $entity_type_manager;
}