You are here

public function ServerListBuilder::buildHeader in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 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 23

Class

ServerListBuilder
Provides a listing of Server entities.

Namespace

Drupal\ldap_servers

Code

public function buildHeader() {
  $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();
}