Hello project maintainers,

Creating this issue to help make this module compatible with Drupal 10.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rahul17 created an issue. See original summary.

rahul17’s picture

Assigned: Unassigned » rahul17
Status: Active » Needs work
rahul17’s picture

Status: Needs work » Needs review
StatusFileSize
new2.88 KB
new2.81 KB

Created patch to makes this module D10 compatible and resolve below issue :

The website encountered an unexpected error. Please try again later.
Error: Class "Drupal\media_library\Plugin\Field\FieldWidget\MediaLibraryWidget" not found in include() (line 24 of modules\contrib\linked_entity_reference\src\Plugin\Field\FieldWidget\LinkedMediaLibrary.php).

Kindly review it.

chandra gowsalya kannan’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new28.12 KB
new51.23 KB
new16.69 KB
new56.95 KB

Tested patch in Drupal 9 and Drupal 10. Patch is applied successfully and no non ignorable errors in drupal check.
Functionality is working in both D9.5.7 and D10.0.3 with php 8.1. Attached screenshot for reference.

Moving this to RTBC !

Eduardo Morales Alberti made their first commit to this issue’s fork.

eduardo morales alberti’s picture

We need to update this module to be compatible with drupal 10, the problem is, that until is not merged, we should use a fork because the patch with the compatibility applies after composer resolves the dependencies.
We will open a fork, to be able to use this module on drupal 10 until the patch is merged.

eduardo morales alberti’s picture

Using drupal upgrade status we got the following message after the analysis:

Class Drupal\linked_entity_reference\Plugin\Field\FieldWidget\LinkedMediaLibrary extends @internal class Drupal\media_library\Plugin\Field\FieldWidget\MediaLibraryWidget.
eduardo morales alberti’s picture

Maybe the core classes should not be internal https://www.drupal.org/project/drowl_layouts/issues/3350603
We think this is an error that can be ignored by now.

tunic’s picture

Assigned: rahul17 » Unassigned

Reviewed, module installs properly and seems to work.

Detected #3411215: "There are no content items matching" when trying to add a second value in a multivalued field but this bug is present prior to this update, so not blocking for this.

tunic’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.