public function ServerListBuilder::buildHeader in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_servers/src/ServerListBuilder.php \Drupal\ldap_servers\ServerListBuilder::buildHeader()
Building the header and content lines for the server list.
Calling the parent::buildHeader() adds a column for the possible actions and inserts the 'edit' and 'delete' links as defined for the entity type.
Overrides EntityListBuilder::buildHeader
File
- ldap_servers/
src/ ServerListBuilder.php, line 26
Class
- ServerListBuilder
- Provides a listing of Server entities.
Namespace
Drupal\ldap_serversCode
public function buildHeader() : array {
$header['label'] = $this
->t('Name');
$header['bind_method'] = $this
->t('Method');
$header['binddn'] = $this
->t('Account');
$header['status'] = $this
->t('Enabled');
$header['address'] = $this
->t('Server address');
$header['port'] = $this
->t('Server port');
$header['current_status'] = $this
->t('Server reachable');
return $header + parent::buildHeader();
}