public function WebformAccessGroupListBuilder::buildHeader in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_access/src/WebformAccessGroupListBuilder.php \Drupal\webform_access\WebformAccessGroupListBuilder::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()
File
- modules/
webform_access/ src/ WebformAccessGroupListBuilder.php, line 124
Class
- WebformAccessGroupListBuilder
- Defines a class to build a listing of webform access group entities.
Namespace
Drupal\webform_accessCode
public function buildHeader() {
$header = [];
$header['label'] = $this
->t('Label/Description');
$header['type'] = [
'data' => $this
->t('Type'),
'class' => [
RESPONSIVE_PRIORITY_MEDIUM,
],
];
$header['users'] = [
'data' => $this
->t('Users'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['entities'] = [
'data' => $this
->t('Nodes'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['permissions'] = [
'data' => $this
->t('Permissions'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['admins'] = [
'data' => $this
->t('Admins'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
$header['emails'] = [
'data' => $this
->t('Emails'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
return $header + parent::buildHeader();
}