Problem/Motivation

The discovery notes point out that the contributed module was not fully Drupal 10 compatible and needed patches just to run on 10.2.x . Even after those fixes, media insertion sometimes fails, which is only partly solved on 10.2.12 and not working on Drupal 11.

Proposed resolution

Upgrade & declare compatibility

  • Bump composer.json to drupal/core:^10.x.x || ^11.0 and add "core_version_requirement": "^10 || ^11" in info.yml.
  • Run the module on Drupal 10.x.x and the current 11 to confirm it installs without missing-plugin or schema errors.

Remove deprecated API calls

  • Scan with drupal-check / phpstan-drupal and replace APIs marked as removed in 10.x/11 (e.g. entityTypeManager()->getStorage() usage inside plugin constructors, deprecated annotation classes, legacy media_library.ui_builder services).
  • Add backward-compatibility shims only where unavoidable.

Comments

oleksandr yushchenko created an issue. See original summary.

mediaflow’s picture

Version: 1.0.x-dev » 2.0.0
Status: Active » Fixed

Merged to 2.0.0, released Dec 17 2025.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

mediaflow’s picture

Status: Fixed » Closed (fixed)