You are here

public function InstagramAccountListBuilder::buildHeader in Instagram Feeds 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/InstagramAccountListBuilder.php, line 43

Class

InstagramAccountListBuilder
Lists instagram_account entities.

Namespace

Drupal\instagram_feeds

Code

public function buildHeader() {
  $header = [];
  foreach ($this
    ->getColumns() as $field => $label) {
    $header[$field] = [
      'data' => $label,
      'field' => $field,
      'specifier' => $field,
    ];
  }
  $header['iid']['class'] = [
    RESPONSIVE_PRIORITY_LOW,
  ];
  $header['media_bundle']['class'] = [
    RESPONSIVE_PRIORITY_LOW,
  ];
  $header['cron_import_limit']['class'] = [
    RESPONSIVE_PRIORITY_LOW,
  ];
  $header['token_expiration']['sort'] = 'desc';
  return $header + parent::buildHeader();
}