Mercurial > hg > isophonics-drupal-site
comparison core/modules/taxonomy/src/VocabularyListBuilder.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
121 */ | 121 */ |
122 public function buildHeader() { | 122 public function buildHeader() { |
123 $header['label'] = t('Vocabulary name'); | 123 $header['label'] = t('Vocabulary name'); |
124 $header['description'] = t('Description'); | 124 $header['description'] = t('Description'); |
125 | 125 |
126 if ($this->currentUser->hasPermission('administer vocabularies')) { | 126 if ($this->currentUser->hasPermission('administer vocabularies') && !empty($this->weightKey)) { |
127 $header['weight'] = t('Weight'); | 127 $header['weight'] = t('Weight'); |
128 } | 128 } |
129 | 129 |
130 return $header + parent::buildHeader(); | 130 return $header + parent::buildHeader(); |
131 } | 131 } |