You are here

public function MediaWatermarkListBuilder::buildHeader in Media watermark 8

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/Controller/MediaWatermarkListBuilder.php, line 18

Class

MediaWatermarkListBuilder
Provides a listing of Example.

Namespace

Drupal\media_watermark\Controller

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Media Watermark');
  $header['id'] = $this
    ->t('Machine name');
  $header['fid'] = $this
    ->t('Image');
  $header['horizontalPosition'] = $this
    ->t('Horizontal Position');
  $header['verticalPosition'] = $this
    ->t('Vertical Position');
  $header['horizontalMargin'] = $this
    ->t('Horizontal Margin');
  $header['verticalMargin'] = $this
    ->t('Vertical Margin');
  return $header + parent::buildHeader();
}