Use the contributed Hypermedia Application Language (HAL) module

Created on 8 November 2023, about 1 year ago
Updated 19 July 2024, 4 months ago

The REST Example module requires the HAL core module, but that module has been removed from Drupal 10. Instead, it should use the Hypermedia Application Language (HAL) contributed module, which requires at least Drupal 10.

The 3.x branch can still use the HAL core module, but its core_version_requirement must be changed to ^8.7.7 || ^9.

Original report

Problem/Motivation

https://www.drupal.org/project/examples/issues/3340880 📌 Add compatibility to D10 as core version requirement Fixed got Examples module compatible with Drupal 10, but this won't work well for our dev environments where we have REST Example installed, as it depends on HAL which has been removed from D10. A contrib version exists at https://www.drupal.org/project/hal which will fit the bill, but we'll need to patch the module to handle it.

Steps to reproduce

  1. Start with Drupal 9
  2. Install REST Example
  3. Try upgrading to Drupal 10

Proposed resolution

Use the contrib version of HAL instead of the version from core.

Remaining tasks

Patch the project, using drupal/hal as a top-level dependency of Examples.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

4.0

Component

REST Example

Created by

🇦🇺Australia geoffreyr

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