You are here

public function FilebrowserListBuilder::buildHeader in Filebrowser 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

lib/Drupal/filebrowser/Entity/Controller/FilebrowserListBuilder.php, line 17
Contains \Drupal\filebrowser\Entity\Controller\FilebrowserListBuilder.

Class

FilebrowserListBuilder
Provides a list controller for entity. Define header and row content for the FooBar listing. The 'Operations' links are added automatically from the 'links' definition in the entityType annotation when the parent functions are called.

Namespace

Drupal\filebrowser\Entity\Controller

Code

public function buildHeader() {
  $header['id'] = t('FooBarID');
  $header['label'] = t('Label');
  $header['filebrowser_field'] = t('FilebrowserField');
  return $header + parent::buildHeader();
}