public function EntityLegalDocumentListBuilder::buildHeader in Entity Legal 8
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/
Controller/ EntityLegalDocumentListBuilder.php, line 20 - Contains \Drupal\entity_legal\Controller\EntityLegalDocumentListBuilder.
Class
- EntityLegalDocumentListBuilder
- Provides a listing of legal documents.
Namespace
Drupal\entity_legal\ControllerCode
public function buildHeader() {
$header['label'] = $this
->t('Legal document');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}