public function OpignoNotificationListBuilder::buildHeader in Opigno notifications 8
Same name and namespace in other branches
- 3.x src/Entity/Controller/OpignoNotificationListBuilder.php \Drupal\opigno_notification\Entity\Controller\OpignoNotificationListBuilder::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
- src/
Entity/ Controller/ OpignoNotificationListBuilder.php, line 19
Class
- OpignoNotificationListBuilder
- Provides a list controller for opigno_notification entity.
Namespace
Drupal\opigno_notification\Entity\ControllerCode
public function buildHeader() {
$header['id'] = $this
->t('ID');
$header['uid'] = $this
->t('User');
$header['message'] = $this
->t('Message');
$header['has_read'] = $this
->t('Has Read');
return $header + parent::buildHeader();
}