public function OpignoAnswerListBuilder::buildHeader in Opigno module 8
Same name and namespace in other branches
- 3.x src/OpignoAnswerListBuilder.php \Drupal\opigno_module\OpignoAnswerListBuilder::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/
OpignoAnswerListBuilder.php, line 19
Class
- OpignoAnswerListBuilder
- Defines a class to build a listing of Answer entities.
Namespace
Drupal\opigno_moduleCode
public function buildHeader() {
$header['id'] = $this
->t('Answer ID');
$header['name'] = $this
->t('Name');
return $header + parent::buildHeader();
}