You are here

public function CityListBuilder::buildHeader in Country, State and City Fields 8

Building the header and content lines for the slider 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/CityListBuilder.php, line 76

Class

CityListBuilder
Provides a list controller for citylist entity.

Namespace

Drupal\country_state_city\Entity\Controller

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('City ID');
  $header['name'] = $this
    ->t('Name');
  return $header + parent::buildHeader();
}