public function YamlFormOptionsListBuilder::buildHeader in YAML Form 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/
YamlFormOptionsListBuilder.php, line 20
Class
- YamlFormOptionsListBuilder
- Defines a class to build a listing of form options entities.
Namespace
Drupal\yamlformCode
public function buildHeader() {
$header['label'] = $this
->t('Label');
$header['id'] = $this
->t('ID');
$header['options'] = [
'data' => $this
->t('Options'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['alter'] = [
'data' => $this
->t('Altered'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
return $header + parent::buildHeader();
}