diff --git a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php index b43fe8d..981f654 100644 --- a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php +++ b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php @@ -181,14 +181,8 @@ public function ajaxCallback() { /** * Route title callback. */ - public function getTitle(WorkflowInterface $workflow = NULL, $entity_type_id = NULL) { - try { - $this->entityType = $this->entityTypeManager->getDefinition($entity_type_id); - } - catch (PluginNotFoundException $e) { - throw new NotFoundHttpException(); - } - return $this->t('Select the @entity_type types for the @workflow', ['@entity_type' => $this->entityType->getLabel(), '@workflow' => $workflow->label()]); + public function getTitle(WorkflowInterface $workflow = NULL, $entity_type_id) { + return $this->t('Select the @entity_type types for the @workflow', ['@entity_type' => $this->entityTypeManager->getDefinition($entity_type_id)->getLabel(), '@workflow' => $workflow->label()]); } }