function DraggableListBuilderTrait::buildHeader
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/DraggableListBuilderTrait.php \Drupal\Core\Entity\DraggableListBuilderTrait::buildHeader()
Builds the header row for the entity listing.
Return value
array A render array structure for the header.
See also
\Drupal\Core\Entity\EntityListBuilder::buildHeader()
6 calls to DraggableListBuilderTrait::buildHeader()
- DraggableListBuilderTrait::buildForm in core/
lib/ Drupal/ Core/ Entity/ DraggableListBuilderTrait.php - Form constructor.
- FilterFormatListBuilder::buildHeader in core/
modules/ filter/ src/ FilterFormatListBuilder.php - LanguageListBuilder::buildHeader in core/
modules/ language/ src/ LanguageListBuilder.php - RoleListBuilder::buildHeader in core/
modules/ user/ src/ RoleListBuilder.php - SearchPageListBuilder::buildHeader in core/
modules/ search/ src/ SearchPageListBuilder.php
5 methods override DraggableListBuilderTrait::buildHeader()
- FilterFormatListBuilder::buildHeader in core/
modules/ filter/ src/ FilterFormatListBuilder.php - LanguageListBuilder::buildHeader in core/
modules/ language/ src/ LanguageListBuilder.php - RoleListBuilder::buildHeader in core/
modules/ user/ src/ RoleListBuilder.php - SearchPageListBuilder::buildHeader in core/
modules/ search/ src/ SearchPageListBuilder.php - VocabularyListBuilder::buildHeader in core/
modules/ taxonomy/ src/ VocabularyListBuilder.php
File
-
core/
lib/ Drupal/ Core/ Entity/ DraggableListBuilderTrait.php, line 74
Class
- DraggableListBuilderTrait
- Provides a trait for draggable listings of entities.
Namespace
Drupal\Core\EntityCode
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.