You are here

public function BadgeListBuilder::buildHeader in User Badges 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/BadgeListBuilder.php, line 67
Contains \Drupal\user_badges\BadgeListBuilder.

Class

BadgeListBuilder
Defines a class to build a listing of Badge entities.

Namespace

Drupal\user_badges

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Badge ID');
  $header['name'] = $this
    ->t('Name');
  $header['badge_image'] = $this
    ->t('Badge Image');
  $header['weight'] = $this
    ->t('Weight');
  $header['roles']['data'] = $this
    ->t('Role');
  return $header + parent::buildHeader();
}