diff --git a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php index b32e96a..8848cec 100644 --- a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php +++ b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php @@ -185,7 +185,14 @@ public function ajaxCallback() { * Route title callback. */ 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()]); + $this->entityType = $this->entityTypeManager->getDefinition($entity_type_id); + + $title = $this->t('Select the @entity_type types for the @workflow', ['@entity_type' => $this->entityType->getLabel(), '@workflow' => $workflow->label()]); + if ($bundle_entity_type_id = $this->entityType->getBundleEntityType()) { + $title = $this->t('Select the @entity_type_plural_label for the @workflow', ['@entity_type_plural_label' => $this->entityTypeManager->getDefinition($bundle_entity_type_id)->getPluralLabel(), '@workflow' => $workflow->label()]); + } + + return $title; } }