You are here

public function ConsentAgreementListBuilder::buildHeader in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php \Drupal\gdpr_consent\Entity\ConsentAgreementListBuilder::buildHeader()
  2. 8 modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php \Drupal\gdpr_consent\Entity\ConsentAgreementListBuilder::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

modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php, line 18

Class

ConsentAgreementListBuilder
Provides a list controller for gdpr_consent entities.

Namespace

Drupal\gdpr_consent\Entity

Code

public function buildHeader() {
  $header = [
    'title' => $this
      ->t('Title'),
    'mode' => $this
      ->t('Implicit/Explicit'),
  ];
  return $header + parent::buildHeader();
}