Add method to check if the route is a jsonapi resource route

Created on 13 February 2021, over 3 years ago
Updated 17 April 2024, 2 months ago

Problem/Motivation

I'm utilising Routes::isJsonApiRequest($route_defaults) to check to see if a route is a jsonapi route, this does not return true for jsonapi resource routes I would like an equivalent to check to see if.

Steps to reproduce

Proposed resolution

In the patch I have attached a static method in Drupal\jsonapi_resources\Unstable\Routing::isJsonApiResourceRequest to provide route checking ability for a jsonapi_resource route.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024