Problem/Motivation

Per @Charlie ChX Negyesi at #2570593-192: Allow entities to be subclassed using "bundle classes":

The new throws doxygen in EntityTypeRepositoryInterface does not make sense to me -- it might be me, of course. It's a copypaste of the existing doxygen so it's not a new problem and also quite easy to fix. The existing one says: thrown when multiple subclasses correspond to the called class. I believe this wanted to be thrown when multiple entity types correspond to the provided class a) not "subclasses" but "entity types" b) not "called class" but "provided class" because we do not call a class, that's not even possible, you can call an object if it has a __invoke magic method but classes can't be called.

Opening this as a postponed follow-up to avoid running into trouble with scope creep in the vastly more important parent issue. 😉

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

dww created an issue. See original summary.

dww’s picture

larowlan’s picture

Title: [PP-1] Improve @throws documentation for EntityTypeRepositoryInterface » Improve @throws documentation for EntityTypeRepositoryInterface

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.