Problem/Motivation
The docblock on the Drupal\content_moderation\Entity\Handler\ModerationHandler is a bit confusing. It claims "this class is intended primarily as a base class" and in the same breath is tagged @internal.
Both BlockContentModerationHandler and NodeModerationHandler extend it already, so why can't contributed modules? It would seem reasonable to use this as a base class for custom entities. Otherwise, developers will just copy/paste the whole class into their own, and we lose one of the core benefits of OOP.
Steps to reproduce
Code inspection. Check out the docblock at core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php:14.
Proposed resolution
Remove the @internal tag from the ModerationHandler class.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #6
smustgrave commentedThis came up as a daily BSI target
Wasn't sure so posted in #core-development in slack
From @godotislate
and the interface
So believe this is a works as designed. Recommend we close this.
Comment #7
quietone commented@John Franklin, How Drupal core uses the
@internaltag is explained in API definition section of the BC policy. In part, it states,That and the previous comment resolve the question. There is no bug here, and the documentation exists, I am changing this to a support request. Also, closing because it has been answered.