You are here

public function UserDefaultPageConfigEntityListBuilder::buildHeader in User Default Page 8.2

Same name and namespace in other branches
  1. 8 src/UserDefaultPageConfigEntityListBuilder.php \Drupal\user_default_page\UserDefaultPageConfigEntityListBuilder::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/UserDefaultPageConfigEntityListBuilder.php, line 18

Class

UserDefaultPageConfigEntityListBuilder
Provides a listing of User default page entities.

Namespace

Drupal\user_default_page

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Label');
  $header['roles'] = $this
    ->t('Roles');
  $header['weight'] = $this
    ->t('Weight');
  $header['users'] = $this
    ->t('User Id(s)');
  $header['login_path'] = $this
    ->t('Login Path');
  $header['logout_path'] = $this
    ->t('Logout Path');
  $header['login_message'] = $this
    ->t('Login Message');
  $header['logout_message'] = $this
    ->t('Logout Message');
  return $header + parent::buildHeader();
}