You are here

public function RelationshipRouteAccessCheck::__construct in Drupal 9

RelationshipRouteAccessCheck constructor.

Parameters

\Drupal\jsonapi\Access\EntityAccessChecker $entity_access_checker: The JSON:API entity access checker.

File

core/modules/jsonapi/src/Access/RelationshipRouteAccessCheck.php, line 46

Class

RelationshipRouteAccessCheck
Defines a class to check access to related and relationship routes.

Namespace

Drupal\jsonapi\Access

Code

public function __construct(EntityAccessChecker $entity_access_checker) {
  $this->entityAccessChecker = $entity_access_checker;
}