diff --git a/core/modules/taxonomy/src/Form/OverviewTerms.php b/core/modules/taxonomy/src/Form/OverviewTerms.php index 94c9bb9..b76a2f1 100644 --- a/core/modules/taxonomy/src/Form/OverviewTerms.php +++ b/core/modules/taxonomy/src/Form/OverviewTerms.php @@ -216,7 +216,6 @@ public function buildForm(array $form, FormStateInterface $form_state, Vocabular } $form['terms'] = array( '#type' => 'table', - '#header' => array($this->t('Name'), $this->t('Weight'), $this->t('Operations')), '#empty' => $empty, '#attributes' => array( 'id' => 'taxonomy', diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index 07f00d7..8d1f8b3 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -66,6 +66,17 @@ function taxonomy_help($route_name, RouteMatchInterface $route_match) { case 'entity.taxonomy_vocabulary.overview_form': $vocabulary = $route_match->getParameter('taxonomy_vocabulary'); + if (!\Drupal::currentUser()->hasPermission('administer taxonomy')) { + // There is no drag-and-drop handles. + switch ($vocabulary->getHierarchy()) { + case TAXONOMY_HIERARCHY_DISABLED: + return '

' . t('%capital_name contains the following terms.', array('%capital_name' => Unicode::ucfirst($vocabulary->label()))) . '

'; + case TAXONOMY_HIERARCHY_SINGLE: + return '

' . t('%capital_name contains terms grouped under parent terms', array('%capital_name' => Unicode::ucfirst($vocabulary->label()))) . '

'; + case TAXONOMY_HIERARCHY_MULTIPLE: + return '

' . t('%capital_name contains terms with multiple parents.', array('%capital_name' => Unicode::ucfirst($vocabulary->label()))) . '

'; + } + } switch ($vocabulary->getHierarchy()) { case TAXONOMY_HIERARCHY_DISABLED: return '

' . t('You can reorganize the terms in %capital_name using their drag-and-drop handles, and group terms under a parent term by sliding them under and to the right of the parent.', array('%capital_name' => Unicode::ucfirst($vocabulary->label()), '%name' => $vocabulary->label())) . '

';