Clean up \Drupal\hal\Normalizer\NormalizerBase: duplicate less from the parent class \Drupal\serialization\Normalizer\NormalizerBase

Created on 24 March 2017, over 7 years ago
Updated 13 September 2023, over 1 year ago

The \Drupal\serialization\Normalizer\NormalizerBase has the checkFormat() method which allows you to check whether data format is supported by this normalizer.

Proposed resolution

  1. Rename property $formats of \Drupal\hal\Normalizer\NormalizerBase to $format.
  2. Remove supportsNormalization() and supportsDenormalization() methods of the same class.
  3. Explicitly define the $format property in \Drupal\serialization\Normalizer\NormalizerBase class to allow inheritance.
πŸ“Œ Task
Status

Fixed

Version

8.4 ⚰️

Component

hal.module

Created by

πŸ‡ΊπŸ‡¦Ukraine BR0kEN Dnipro

Live updates comments and jobs are added and updated live.
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