summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-08-15 00:52:02 -0500
committerxjm2017-08-15 00:52:31 -0500
commit26eff6568632d74b227733e50024e2014c22f585 (patch)
treeb4a88e1c4584a7c5604e99bcb6c38b469d60a8f3
parent787b7cce2b8cfdae6a8dcc03d18cdf67dd47c85c (diff)
Issue #2859455 by Sam152, vijaycs85, timmillwood, dawehner, Wim Leers: Remove superfluous @todos from content moderation
(cherry picked from commit 5c2593d17b35780d14be7aa62e924598ab2e4baf)
-rw-r--r--core/modules/content_moderation/src/EntityTypeInfo.php2
-rw-r--r--core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php3
2 files changed, 0 insertions, 5 deletions
diff --git a/core/modules/content_moderation/src/EntityTypeInfo.php b/core/modules/content_moderation/src/EntityTypeInfo.php
index af6de45..95a95bd 100644
--- a/core/modules/content_moderation/src/EntityTypeInfo.php
+++ b/core/modules/content_moderation/src/EntityTypeInfo.php
@@ -159,8 +159,6 @@ class EntityTypeInfo implements ContainerInjectionInterface {
$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 27592ae..561c0c0 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);