public function SkinListBuilder::buildHeader in Skinr 8.2
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 SkinListBuilder::buildHeader()
- SkinListBuilder::render in skinr_ui/
src/ Controller/ SkinListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
File
- skinr_ui/
src/ Controller/ SkinListBuilder.php, line 21 - Contains \Drupal\skinr_ui\Controller\SkinListBuilder.
Class
- SkinListBuilder
- Returns responses for devel module routes.
Namespace
Drupal\skinr_ui\ControllerCode
public function buildHeader() {
$header['id'] = array(
'data' => $this
->t('Machine name'),
'class' => array(
'skinr-ui-name',
),
);
$header['element_type'] = array(
'data' => $this
->t('Type'),
'class' => array(
'skinr-ui-type',
),
);
$header['element'] = array(
'data' => $this
->t('Element'),
'class' => array(
'skinr-ui-element',
),
);
$header['theme'] = array(
'data' => $this
->t('Theme'),
'class' => array(
'skinr-ui-theme',
),
);
$header['label'] = array(
'data' => $this
->t('Skin'),
'class' => array(
'skinr-ui-skin',
),
);
// $header['storage'] = array(
// 'data' => $this->t('Storage'),
// 'class' => array('skinr-ui-storage'),
// );
$header['status'] = array(
'data' => $this
->t('Status'),
'class' => array(
'skinr-ui-status',
),
);
return $header + parent::buildHeader();
}