You are here

public function AutobanListBuilder::buildHeader in Automatic IP ban (Autoban) 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\EntityListController::render()

File

src/Controller/AutobanListBuilder.php, line 91

Class

AutobanListBuilder
Provides a listing of autoban entities.

Namespace

Drupal\autoban\Controller

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Id');
  $header['type'] = $this
    ->t('Type');
  $header['message'] = $this
    ->t('Message pattern');
  $header['referer'] = $this
    ->t('Referrer');
  $header['threshold'] = $this
    ->t('Threshold');
  $header['user_type'] = $this
    ->t('User type');
  $header['provider'] = $this
    ->t('Provider');
  return $header + parent::buildHeader();
}