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();
}
doc_Drupal
2016-10-29 09:02:38
Comments
Leave a Comment

Please login to continue.