public function WebformOptionsListBuilder::buildHeader in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformOptionsListBuilder.php \Drupal\webform\WebformOptionsListBuilder::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 WebformOptionsListBuilder::buildHeader()
- WebformOptionsListBuilder::getEntityIds in src/
WebformOptionsListBuilder.php - Loads entity IDs using a pager sorted by the entity label (instead of id).
File
- src/
WebformOptionsListBuilder.php, line 122
Class
- WebformOptionsListBuilder
- Defines a class to build a listing of webform options entities.
Namespace
Drupal\webformCode
public function buildHeader() {
$header['label'] = $this
->t('Label');
$header['category'] = $this
->t('Category');
$header['likert'] = $this
->t('Likert');
$header['alter'] = [
'data' => $this
->t('Altered'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['options'] = [
'data' => $this
->t('Options'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['used_by'] = [
'data' => $this
->t('Used by'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
return $header + parent::buildHeader();
}