W3cubDocs

/Drupal 8

public function DraggableListBuilder::buildHeader

public DraggableListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListBuilder::buildHeader

See also

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

File

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

Class

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

Namespace

Drupal\Core\Config\Entity

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!DraggableListBuilder.php/function/DraggableListBuilder::buildHeader/8.1.x