You are here

public function ContentModerationNotificationsListBuilder::buildHeader in Content Moderation Notifications 8

Same name and namespace in other branches
  1. 8.3 src/Controller/ContentModerationNotificationsListBuilder.php \Drupal\content_moderation_notifications\Controller\ContentModerationNotificationsListBuilder::buildHeader()
  2. 8.2 src/Controller/ContentModerationNotificationsListBuilder.php \Drupal\content_moderation_notifications\Controller\ContentModerationNotificationsListBuilder::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\EntityListController::render()

File

src/Controller/ContentModerationNotificationsListBuilder.php, line 39

Class

ContentModerationNotificationsListBuilder
Provides a listing of content_moderation_notification entities.

Namespace

Drupal\content_moderation_notifications\Controller

Code

public function buildHeader() {
  $header['transition'] = $this
    ->t('Transitions');
  $header['bundles'] = $this
    ->t('Enabled Bundles');
  $header['roles'] = $this
    ->t('Email Roles');
  $header['author'] = $this
    ->t('Email Author');
  $header['emails'] = $this
    ->t('Adhoc Emails');
  return $header + parent::buildHeader();
}