You are here

public function GoogleApiServiceClientListBuilder::buildHeader in Google API PHP Client 8.4

Same name and namespace in other branches
  1. 8.3 src/Entity/Controller/GoogleApiServiceClientListBuilder.php \Drupal\google_api_client\Entity\Controller\GoogleApiServiceClientListBuilder::buildHeader()

Building the header and content lines for the entity 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

src/Entity/Controller/GoogleApiServiceClientListBuilder.php, line 23

Class

GoogleApiServiceClientListBuilder
Provides a list controller for google_api_client entity.

Namespace

Drupal\google_api_client\Entity\Controller

Code

public function buildHeader() {
  $header = [
    'id' => $this
      ->t('Machine Name'),
    'label' => $this
      ->t('Name'),
    'services' => $this
      ->t('Services'),
  ];
  return $header + parent::buildHeader();
}