summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-08-15 00:52:02 -0500
committerxjm2017-08-15 00:52:02 -0500
commit5c2593d17b35780d14be7aa62e924598ab2e4baf (patch)
tree6369966d06768d9ea57946b23963a6dfdad1b295
parentd70110cbf809bb182521419bda9ad95e88f3dd92 (diff)
Issue #2859455 by Sam152, vijaycs85, timmillwood, dawehner, Wim Leers: Remove superfluous @todos from content moderation
-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);