You are here

public function EmbedButtonListBuilder::buildHeader in Embed 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/EmbedButtonListBuilder.php, line 16

Class

EmbedButtonListBuilder
Provides a listing of all Embed Button entities.

Namespace

Drupal\embed

Code

public function buildHeader() {
  $header = [];
  $header['label'] = $this
    ->t('Embed button');
  $header['embed_type'] = $this
    ->t('Embed type');
  $header['icon'] = [
    'data' => $this
      ->t('Icon'),
    'class' => [
      RESPONSIVE_PRIORITY_LOW,
    ],
  ];
  return $header + parent::buildHeader();
}