Use Interface as function argument type

Created on 30 July 2019, over 5 years ago
Updated 24 May 2024, 7 months ago

Problem/Motivation

Argument of following method use \Drupal\jsonapi\ResourceType\ResourceTypeRepository

  • \Drupal\jsonapi_extras\Normalizer\SchemaFieldDefinitionNormalizer::__construct
  • \Drupal\jsonapi_extras\Normalizer\SchemataSchemaNormalizer::__construct

This prevents jsonapi.resource_type.repository service to be altered or decorated without extending those class

Proposed resolution

Use interface \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface as argument type instead

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇮🇩Indonesia el7cosmos 🇮🇩 GMT+7

Live updates comments and jobs are added and updated live.
  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

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.71.5 2024