Normalizers/Denormalizers should implement ::getSupportedTypes() instead of ::hasCacheableSupportsMethod()

Created on 19 February 2024, 11 months ago
Updated 15 August 2024, 5 months ago

Problem/Motivation

When I run the PHPUnit tests for this module, I get deprecation notices:

Defining Drupal\rest_views\Normalizer\DataNormalizer::supportedInterfaceOrClass property is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use getSupportedTypes() instead. See https://www.drupal.org/node/3359695 โ†’

I used the title of the change record as the title of this issue.

Steps to reproduce

Proposed resolution

See the change record.

Remaining tasks

  1. Create a follow-up issue for version 4.0.0 to stop implementing CacheableSupportsMethodInterface and remove the BC code.

User interface changes

None

API changes

None.

Data model changes

None

๐Ÿ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States benjifisher Boston area

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024