You are here

public function ModeratedNodeListBuilder::buildHeader in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/ModeratedNodeListBuilder.php \Drupal\content_moderation\ModeratedNodeListBuilder::buildHeader()
  2. 9 core/modules/content_moderation/src/ModeratedNodeListBuilder.php \Drupal\content_moderation\ModeratedNodeListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides NodeListBuilder::buildHeader

See also

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

File

core/modules/content_moderation/src/ModeratedNodeListBuilder.php, line 102

Class

ModeratedNodeListBuilder
Defines a class to build a listing of moderated node entities.

Namespace

Drupal\content_moderation

Code

public function buildHeader() {
  $header = parent::buildHeader();
  $header['status'] = $this
    ->t('Moderation state');
  return $header;
}