function RelationshipRouteAccessCheck::__construct

Same name in other branches
  1. 10 core/modules/jsonapi/src/Access/RelationshipRouteAccessCheck.php \Drupal\jsonapi\Access\RelationshipRouteAccessCheck::__construct()
  2. 11.x core/modules/jsonapi/src/Access/RelationshipRouteAccessCheck.php \Drupal\jsonapi\Access\RelationshipRouteAccessCheck::__construct()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.