public function OrganizationListBuilder::buildHeader in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_contact/src/OrganizationListBuilder.php \Drupal\crm_core_contact\OrganizationListBuilder::buildHeader()
- 8.2 modules/crm_core_contact/src/OrganizationListBuilder.php \Drupal\crm_core_contact\OrganizationListBuilder::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/
crm_core_contact/ src/ OrganizationListBuilder.php, line 61
Class
- OrganizationListBuilder
- Class OrganizationListBuilder.
Namespace
Drupal\crm_core_contactCode
public function buildHeader() {
$header = [];
$header['label'] = $this
->t('Label');
$header['type'] = [
'data' => $this
->t('Organization type'),
'class' => [
RESPONSIVE_PRIORITY_MEDIUM,
],
];
$header['changed'] = [
'data' => $this
->t('Updated'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
];
return $header + parent::buildHeader();
}