You are here

public function ModerationStateTransitionListBuilder::buildHeader in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/ModerationStateTransitionListBuilder.php \Drupal\workbench_moderation\ModerationStateTransitionListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides DraggableListBuilder::buildHeader

See also

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

File

src/ModerationStateTransitionListBuilder.php, line 59

Class

ModerationStateTransitionListBuilder
Provides a listing of Moderation state transition entities.

Namespace

Drupal\workbench_moderation

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Moderation state transition');
  $header['id'] = $this
    ->t('Machine name');
  $header['from'] = $this
    ->t('From state');
  $header['to'] = $this
    ->t('To state');
  return $header + parent::buildHeader();
}