diff --git a/core/modules/content_moderation/content_moderation.routing.yml b/core/modules/content_moderation/content_moderation.routing.yml index c5aacbf..ef53e18 100644 --- a/core/modules/content_moderation/content_moderation.routing.yml +++ b/core/modules/content_moderation/content_moderation.routing.yml @@ -2,6 +2,6 @@ workflow.update_entity_type_form: path: '/admin/config/workflow/workflows/manage/{workflow}/type/{entity_type_id}' defaults: _form: '\Drupal\content_moderation\Form\WorkflowTypeEditForm' - _title: 'Add or remove types' + _title: 'Select the types for this workflow' requirements: _permission: 'administer workflows' diff --git a/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php b/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php index bd938ac..adc3005 100644 --- a/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php +++ b/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php @@ -330,19 +330,17 @@ public function getConfiguration() { */ public function buildConfigurationForm(array $form, FormStateInterface $form_state, WorkflowInterface $workflow = null) { $header = [ - 'type' => $this->t('Type'), + 'type' => $this->t('Items'), 'operations' => $this->t('Operations') ]; $form['entity_types_container'] = [ '#type' => 'details', - '#title' => $this->t('Entity types'), + '#title' => $this->t('Applies to:'), '#open' => TRUE, - '#collapsible' => 'FALSE', ]; $form['entity_types_container']['entity_types'] = [ '#type' => 'table', '#header' => $header, - '#title' => $this->t('Entity types'), '#empty' => $this->t('There are no entity types.'), ]; @@ -361,7 +359,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta $form['entity_types_container']['entity_types'][$entity_type->id()] = [ 'type' => [ - 'label' => ['#markup' => $entity_type->getLabel()], + 'label' => ['#markup' => $this->t('%bundle types', ['%bundle' => $entity_type->getLabel()])], 'selected' => [ '#prefix' => '', '#markup' => !empty($selected_bundles) ? $this->t("
Selected: %bundles
", ['%bundles' => implode(', ', $selected_bundles)]) : ''], @@ -371,15 +369,14 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta '#type' => 'operations', '#links' => [ 'Add' => [ - 'title' => $this->t('Add or remove types'), + 'title' => $this->t('Select'), 'url' => Url::fromRoute('workflow.update_entity_type_form', ['workflow' => $workflow->id(), 'entity_type_id' => $entity_type->id()]), 'attributes' => [ - 'aria-label' => $this->t('Add or remove types'), + 'aria-label' => $this->t('Select'), 'class' => ['use-ajax'], 'data-dialog-type' => 'modal', 'data-dialog-options' => Json::encode([ 'width' => 700, - 'height' => 400, ]), ], ],