Problem/Motivation

I ran modules/contrib/bibcite/modules/bibcite_import/tests/src/Kernel/ImportBasicTest.php locally and got a deprecation notice:

Defining Drupal\bibcite_entity\Normalizer\ContributorNormalizer::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

Since this module already aims to be compatible with Drupal 11, I am setting the Priority to Major.

I have not tested on Drupal 11.

Steps to reproduce

Proposed resolution

  1. Implement getSupportedTypes() as described in the change record https://www.drupal.org/node/3359695.
  2. Remove the deprecated property supportedInterfaceOrClass.

Remaining tasks

User interface changes

None

API changes

The deprecated property is protected, so it is not part of the API.

The new method is public, but it is implemented in the base class since Drupal 10.1.0, so I do not think this counts as an API addition.

Data model changes

None

Issue fork bibcite-3585052

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

benjifisher created an issue. See original summary.

benjifisher’s picture

benjifisher’s picture

Assigned: benjifisher » Unassigned
Status: Active » Needs review
mark_fullmer’s picture

Status: Needs review » Postponed

Since https://www.drupal.org/node/3359695 specifies that the new logic was introduced in Drupal 10.1, and that "Modules may want to implement both methods for compatibility with Drupal 10.0 and 9.5," I think that we would either need to update Bibcite's minimum compatibility from Drupal 10.0 to 10.1, or if the presence of these classes that are removed in Drupal 11.0 aren't causing errors, postpone the removal of the backwards compatible methods until something else forces the update of Bibcite's minimum compatibility.

I'm tentatively feeling we can let this ride until Drupal 12 is released later this year, at which point I would be fine setting new Bibcite releases' minimum Drupal compatibility to 11.0.

benjifisher’s picture

Status: Postponed » Needs review

I think that we would either need to update Bibcite's minimum compatibility from Drupal 10.0 to 10.1, ...

This issue targets the 3.0.x branch, and I already see

core_version_requirement: ^10.1 || ^11

in bibcite.info.yml.

mark_fullmer’s picture

Thanks! I was looking at the 3.0.1 release. Merged!

mark_fullmer’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

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