diff --git a/core/modules/content_moderation/content_moderation.routing.yml b/core/modules/content_moderation/content_moderation.routing.yml index 5154b5e..d86a439 100644 --- a/core/modules/content_moderation/content_moderation.routing.yml +++ b/core/modules/content_moderation/content_moderation.routing.yml @@ -2,6 +2,6 @@ entity.workflow.edit_type_form: path: '/admin/config/workflow/workflows/manage/{workflow}/type/{entity_type}' defaults: _form: '\Drupal\content_moderation\Form\WorkflowTypeEditForm' - _title: 'Add / remove type' + _title: 'Add / remove types' requirements: _permission: 'administer workflows' diff --git a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php index 1af0ac0..10c2785 100644 --- a/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php +++ b/core/modules/content_moderation/src/Form/WorkflowTypeEditForm.php @@ -101,11 +101,12 @@ public function buildForm(array $form, FormStateInterface $form_state, $workflow } } + if (!empty($options)) { $form['bundles'] = [ '#type' => 'tableselect', '#header' => [ - 'type' => $this->t('Type'), + 'type' => $this->t('All @entity_type types', ['@entity_type' => $this->entityType->getLabel()]), ], '#options' => $options, '#default_value' => $defaults,