diff --git a/core/modules/content_moderation/src/EntityTypeInfo.php b/core/modules/content_moderation/src/EntityTypeInfo.php index af6de45c75ea671e15621498bf76f6667210735f..95a95bdb600975ff79fd1a2f475553945c3301a7 100644 --- a/core/modules/content_moderation/src/EntityTypeInfo.php +++ b/core/modules/content_moderation/src/EntityTypeInfo.php @@ -159,8 +159,6 @@ protected function addModerationToEntityType(ContentEntityTypeInterface $type) { $type->setLinkTemplate('latest-version', $type->getLinkTemplate('canonical') . '/latest'); } - // @todo Core forgot to add a direct way to manipulate route_provider, so - // we have to do it the sloppy way for now. $providers = $type->getRouteProviderClasses() ?: []; if (empty($providers['moderation'])) { $providers['moderation'] = EntityModerationRouteProvider::class; diff --git a/core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php b/core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php index 27592ae79bca38016afc8d51c50b4f12e1e831ea..561c0c047cf0a491fd9d135f6d81abae8e6d660c 100644 --- a/core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php +++ b/core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php @@ -28,9 +28,6 @@ class EntityRevisionConverter extends EntityConverter { * The entity manager, needed by the parent class. * @param \Drupal\content_moderation\ModerationInformationInterface $moderation_info * The moderation info utility service. - * - * @todo: If the parent class is ever cleaned up to use EntityTypeManager - * instead of Entity manager, this method will also need to be adjusted. */ public function __construct(EntityManagerInterface $entity_manager, ModerationInformationInterface $moderation_info) { parent::__construct($entity_manager);