You are here

public function ViewListBuilder::buildHeader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::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()

1 call to ViewListBuilder::buildHeader()
ViewListBuilder::render in core/modules/views_ui/src/ViewListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

core/modules/views_ui/src/ViewListBuilder.php, line 126
Contains \Drupal\views_ui\ViewListBuilder.

Class

ViewListBuilder
Defines a class to build a listing of view entities.

Namespace

Drupal\views_ui

Code

public function buildHeader() {
  return array(
    'view_name' => array(
      'data' => $this
        ->t('View name'),
      'class' => array(
        'views-ui-name',
      ),
    ),
    'description' => array(
      'data' => $this
        ->t('Description'),
      'class' => array(
        'views-ui-description',
      ),
    ),
    'tag' => array(
      'data' => $this
        ->t('Tag'),
      'class' => array(
        'views-ui-tag',
      ),
    ),
    'path' => array(
      'data' => $this
        ->t('Path'),
      'class' => array(
        'views-ui-path',
      ),
    ),
    'operations' => array(
      'data' => $this
        ->t('Operations'),
      'class' => array(
        'views-ui-operations',
      ),
    ),
  );
}