You are here

public function PathFileEntityListBuilder::buildHeader in Path File 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/PathFileEntityListBuilder.php, line 56

Class

PathFileEntityListBuilder
Defines a class to build a listing of Path file entity entities.

Namespace

Drupal\path_file

Code

public function buildHeader() {
  $header = array(
    'name' => $this
      ->t('Name'),
    'url' => array(
      'data' => $this
        ->t('File Url'),
      'class' => array(
        RESPONSIVE_PRIORITY_MEDIUM,
      ),
    ),
    'status' => $this
      ->t('Status'),
    'changed' => array(
      'data' => $this
        ->t('Updated'),
      'class' => array(
        RESPONSIVE_PRIORITY_LOW,
      ),
    ),
  );
  return $header + parent::buildHeader();
}