You are here

public function TwitterWidgetListBuilder::buildHeader in Twitter Profile Widget 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/TwitterWidgetListBuilder.php, line 22

Class

TwitterWidgetListBuilder
Defines a class to build a listing of Twitter widget entities.

Namespace

Drupal\twitter_profile_widget

Code

public function buildHeader() {
  $header['name'] = $this
    ->t('Widget label');
  $header['type'] = $this
    ->t('Type');
  $header['account'] = $this
    ->t('Twitter account');
  $header['timeline'] = $this
    ->t('Timeline list');
  $header['search'] = $this
    ->t('Search query');
  $header['count'] = $this
    ->t('Display count');
  $header['replies'] = $this
    ->t('Replies');
  $header['retweets'] = $this
    ->t('Retweets');
  return $header + parent::buildHeader();
}