public function VocabularyListController::buildHeader

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListController::buildHeader

See also

Drupal\Core\Entity\EntityListController::render()

2 calls to VocabularyListController::buildHeader()
VocabularyListController::buildForm in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyListController.php
Form constructor.
VocabularyListController::render in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyListController.php
Implements \Drupal\Core\Entity\EntityListControllerInterface::render().

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyListController.php, line 54
Contains \Drupal\taxonomy\VocabularyListController.

Class

VocabularyListController
Provides a listing of vocabularies.

Namespace

Drupal\taxonomy

Code

public function buildHeader() {
  $row = parent::buildHeader();
  $row['label'] = t('Vocabulary name');
  unset($row['id']);
  $row['weight'] = t('Weight');
  return $row;
}