You are here

public function UserConsentListBuilder::buildHeader in Data Policy 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/UserConsentListBuilder.php, line 57

Class

UserConsentListBuilder
Defines a class to build a listing of User consent entities.

Namespace

Drupal\data_policy

Code

public function buildHeader() {
  return [
    'id' => $this
      ->t('ID'),
    'user' => $this
      ->t('User'),
    'created' => $this
      ->t('Date and time of consent'),
  ];
}