You are here

public function ProtectionRuleListBuilder::buildHeader in User protect 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/ProtectionRuleListBuilder.php, line 18

Class

ProtectionRuleListBuilder
Provides a listing of protection rules.

Namespace

Drupal\userprotect\Controller

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Name');
  $header['entity'] = $this
    ->t('Protected entity');
  $header['type'] = $this
    ->t('Type');
  $header['protection'] = $this
    ->t('Protection');
  return $header + parent::buildHeader();
}