You are here

public function GridStackListBuilder::buildHeader in GridStack 8.2

Same name and namespace in other branches
  1. 8 modules/gridstack_ui/src/Controller/GridStackListBuilder.php \Drupal\gridstack_ui\Controller\GridStackListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides DraggableListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

1 call to GridStackListBuilder::buildHeader()
GridStackVariantListBuilder::buildHeader in modules/gridstack_ui/src/Controller/GridStackVariantListBuilder.php
Builds the header row for the entity listing.
1 method overrides GridStackListBuilder::buildHeader()
GridStackVariantListBuilder::buildHeader in modules/gridstack_ui/src/Controller/GridStackVariantListBuilder.php
Builds the header row for the entity listing.

File

modules/gridstack_ui/src/Controller/GridStackListBuilder.php, line 59

Class

GridStackListBuilder
Provides a listing of GridStack optionsets.

Namespace

Drupal\gridstack_ui\Controller

Code

public function buildHeader() {
  $header = [
    'label' => $this
      ->t('Optionset'),
    'id' => $this
      ->t('ID'),
    'icon' => $this
      ->t('Icon'),
    'framework' => $this
      ->t('Grid framework'),
    'grids' => $this
      ->t('Grids : Nested'),
    'provider' => $this
      ->t('Provider'),
  ];
  return $header + parent::buildHeader();
}