public function DirectoryListBuilder::buildHeader in Private files download permission 3.x
Same name and namespace in other branches
- 8.2 src/DirectoryListBuilder.php \Drupal\pfdp\DirectoryListBuilder::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/
DirectoryListBuilder.php, line 56
Class
- DirectoryListBuilder
- Defines a class to build a list of Private files download permission directory entities.
Namespace
Drupal\pfdpCode
public function buildHeader() {
// Prepare the table header.
$header = [];
$header['id'] = $this
->t('Id');
$header['path'] = $this
->t('Directory path');
$header['bypass'] = $this
->t('Bypass');
$header['users'] = $this
->t('Enabled users');
$header['roles'] = $this
->t('Enabled roles');
// Return the table header.
return $header + parent::buildHeader();
}