You are here

public function AgreementListBuilder::buildHeader in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x src/Entity/AgreementListBuilder.php \Drupal\agreement\Entity\AgreementListBuilder::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/Entity/AgreementListBuilder.php, line 17

Class

AgreementListBuilder
Provides simple operations list.

Namespace

Drupal\agreement\Entity

Code

public function buildHeader() {
  return [
    'label' => $this
      ->t('Name'),
    'path' => $this
      ->t('Agreement page'),
    'roles' => $this
      ->t('Roles'),
    'visibility' => $this
      ->t('Visibility Setting'),
  ] + parent::buildHeader();
}