RelationshipFieldAccess
class RelationshipFieldAccess implements AccessInterface (View source)
| internal | JSON:API maintains no PHP API. The API is the HTTP API. This class may change at any time and could break any dependencies on it. |
Defines a class to check access to related and relationship routes.
Constants
| ROUTE_REQUIREMENT_KEY |
The route requirement key for this access check. |
Properties
| protected EntityAccessChecker | $entityAccessChecker | The JSON:API entity access checker. |
Methods
access(Request $request, Route $route, AccountInterface $account)
Checks access to the relationship field on the given route.
Details
__construct(EntityAccessChecker $entity_access_checker)
RelationshipFieldAccess constructor.
AccessResultInterface
access(Request $request, Route $route, AccountInterface $account)
Checks access to the relationship field on the given route.