You are here

public function CustomContextualLinkListBuilder::buildHeader in Custom Contextual Links 8.2

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/CustomContextualLinkListBuilder.php, line 17

Class

CustomContextualLinkListBuilder
Provides a listing of Custom Contextual Link entities.

Namespace

Drupal\ccl

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Label');
  $header['title'] = $this
    ->t('Link Title');
  $header['url'] = $this
    ->t('URL');
  $header['type'] = $this
    ->t('Type');
  $header['options'] = $this
    ->t('Options');
  return $header + parent::buildHeader();
}