function DraggableListBuilder::buildHeader

1 method overrides DraggableListBuilder::buildHeader()
LanguageListBuilder::buildHeader in core/modules/language/src/LanguageListBuilder.php
Builds the header row for the entity listing.

File

core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 60

Class

DraggableListBuilder
Defines a class to build a draggable listing of configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function buildHeader() {
  $header = [];
  if (!empty($this->weightKey)) {
    $header['weight'] = t('Weight');
  }
  return $header + parent::buildHeader();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.