You are here

public function BackgroundImageListBuilder::buildHeader in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageListBuilder.php \Drupal\background_image\BackgroundImageListBuilder::buildHeader()
  2. 2.0.x src/BackgroundImageListBuilder.php \Drupal\background_image\BackgroundImageListBuilder::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()

File

src/BackgroundImageListBuilder.php, line 29

Class

BackgroundImageListBuilder
Provides a list controller for background_image entity.

Namespace

Drupal\background_image

Code

public function buildHeader() {
  $header['image'] = [
    'data' => $this
      ->t('Background Image'),
    'class' => [
      'small',
    ],
  ];
  $header['type'] = $this
    ->t('Type');
  $header['settings'] = $this
    ->t('Settings');
  $header['operations'] = [
    'data' => $this
      ->t('Operations'),
    'class' => [
      'op',
      'small',
    ],
  ];
  return $header;
}