public function DomainListBuilder::buildHeader in Domain Access 8
Builds the header row for the entity listing.
Return value
array A render array structure of header strings.
Overrides DraggableListBuilder::buildHeader
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- domain/
src/ DomainListBuilder.php, line 205
Class
- DomainListBuilder
- User interface for the domain overview screen.
Namespace
Drupal\domainCode
public function buildHeader() {
$header['label'] = $this
->t('Name');
$header['hostname'] = $this
->t('Hostname');
$header['status'] = $this
->t('Status');
$header['is_default'] = $this
->t('Default');
$header['scheme'] = $this
->t('Scheme');
$header += parent::buildHeader();
if (!$this->currentUser
->hasPermission('administer domains')) {
unset($header['weight']);
}
return $header;
}