You are here

public function OembedProviderListBuilder::buildHeader in oEmbed Providers 2.x

Same name and namespace in other branches
  1. 1.0.x src/OembedProviderListBuilder.php \Drupal\oembed_providers\OembedProviderListBuilder::buildHeader()
  2. 1.1.x src/OembedProviderListBuilder.php \Drupal\oembed_providers\OembedProviderListBuilder::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/OembedProviderListBuilder.php, line 16

Class

OembedProviderListBuilder
Provides a listing of custom oEmbed providers.

Namespace

Drupal\oembed_providers

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Provider');
  $header['id'] = $this
    ->t('Machine name');
  return $header + parent::buildHeader();
}