Document ResourceBase::getRouteResourceTypes()

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

Problem/Motivation

In an attempt to learn more about the module, I came across the following code in \Drupal\jsonapi_resources\Resource\ResourceBase:

  /**
   * {@inheritdoc}
   */
  public function getRouteResourceTypes(Route $route, string $route_name): array {

However, ResourceBase does not extend anything so there are no docs to inherit for the getRouteResourceTypes method.

Proposed resolution

Write documentation in the method's docblock.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Documentation

Created by

πŸ‡³πŸ‡±Netherlands marcvangend Amsterdam

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