You are here

public function DraggableListBuilder::buildHeader in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::buildHeader()
  2. 9 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\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()

6 calls to DraggableListBuilder::buildHeader()
DraggableListBuilder::buildForm in core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
Form constructor.
FilterFormatListBuilder::buildHeader in core/modules/filter/src/FilterFormatListBuilder.php
Builds the header row for the entity listing.
LanguageListBuilder::buildHeader in core/modules/language/src/LanguageListBuilder.php
Builds the header row for the entity listing.
RoleListBuilder::buildHeader in core/modules/user/src/RoleListBuilder.php
Builds the header row for the entity listing.
SearchPageListBuilder::buildHeader in core/modules/search/src/SearchPageListBuilder.php
Builds the header row for the entity listing.

... See full list

5 methods override DraggableListBuilder::buildHeader()
FilterFormatListBuilder::buildHeader in core/modules/filter/src/FilterFormatListBuilder.php
Builds the header row for the entity listing.
LanguageListBuilder::buildHeader in core/modules/language/src/LanguageListBuilder.php
Builds the header row for the entity listing.
RoleListBuilder::buildHeader in core/modules/user/src/RoleListBuilder.php
Builds the header row for the entity listing.
SearchPageListBuilder::buildHeader in core/modules/search/src/SearchPageListBuilder.php
Builds the header row for the entity listing.
VocabularyListBuilder::buildHeader in core/modules/taxonomy/src/VocabularyListBuilder.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();
}