You are here

public function ThemeKeyRuleListBuilder::buildHeader in ThemeKey 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/Controller/ThemeKeyRuleListBuilder.php, line 22
Contains Drupal\themekey\Controller\ThemeKeyRuleListBuilder.

Class

ThemeKeyRuleListBuilder
Provides a listing of ThemeKeyRule.

Namespace

Drupal\themekey\Controller

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('ThemeKey Rule');
  $header['property'] = $this
    ->t('Property');
  $header['key'] = $this
    ->t('Key');
  $header['operator'] = $this
    ->t('Operator');
  $header['value'] = $this
    ->t('Value');
  $header['theme'] = $this
    ->t('Theme');
  return $header + parent::buildHeader();
}