You are here

public function GoogleAnalyticsEventTrackerListBuilder::buildHeader in Google Analytics Event Tracking 8

Same name and namespace in other branches
  1. 8.2 src/GoogleAnalyticsEventTrackerListBuilder.php \Drupal\google_analytics_et\GoogleAnalyticsEventTrackerListBuilder::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/GoogleAnalyticsEventTrackerListBuilder.php, line 17

Class

GoogleAnalyticsEventTrackerListBuilder
Provides a listing of Google Analytics event tracker entities.

Namespace

Drupal\google_analytics_et

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Tracker');
  $header['id'] = $this
    ->t('Machine name');
  $header['paths'] = $this
    ->t('Effective On');
  $header['event'] = $this
    ->t('User Interaction');
  $header['selector'] = $this
    ->t('Element Selector');
  $header['category'] = $this
    ->t('Category');
  $header['action'] = $this
    ->t('Action');
  $header['ga_label'] = $this
    ->t('Event Label');
  $header['value'] = $this
    ->t('Value');
  $header['noninteraction'] = $this
    ->t('Non-interaction?');
  return $header + parent::buildHeader();
}