diff --git a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php index a310539..b32e96a 100644 --- a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php +++ b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php @@ -113,10 +113,14 @@ public function buildForm(array $form, FormStateInterface $form_state, WorkflowI } if (!empty($options)) { + $bundles_header = $this->t('All @entity_type types', ['@entity_type' => $this->entityType->getLabel()]); + if ($bundle_entity_type_id = $this->entityType->getBundleEntityType()) { + $bundles_header = $this->t('All @entity_type_plural_label', ['@entity_type_plural_label' => $this->entityTypeManager->getDefinition($bundle_entity_type_id)->getPluralLabel()]); + } $form['bundles'] = [ '#type' => 'tableselect', '#header' => [ - 'type' => $this->t('All @entity_type types', ['@entity_type' => $this->entityType->getLabel()]), + 'type' => $bundles_header, ], '#options' => $options, '#default_value' => $defaults,