You are here

public function BusinessRuleListBuilder::buildHeader in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/BusinessRuleListBuilder.php \Drupal\business_rules\BusinessRuleListBuilder::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/BusinessRuleListBuilder.php, line 17

Class

BusinessRuleListBuilder
Provides a listing of Rule entities.

Namespace

Drupal\business_rules

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Rule');
  $header['id'] = $this
    ->t('Machine name');
  $header['event'] = $this
    ->t('Reacts on event');
  $header['enabled'] = $this
    ->t('Enabled');
  $header['entity'] = $this
    ->t('Entity');
  $header['bundle'] = $this
    ->t('Bundle');
  $header['description'] = $this
    ->t('Description');
  $header['tags'] = $this
    ->t('Tags');
  $header['filter'] = [
    'data' => [
      '#markup' => 'filter',
    ],
    'style' => 'display: none',
  ];
  return $header + parent::buildHeader();
}