public function CountryListBuilder::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/ CountryListBuilder.php, line 76
Class
- CountryListBuilder
- Provides a list controller for countrylist entity.
Namespace
Drupal\country_state_city\Entity\ControllerCode
public function buildHeader() {
$header['id'] = $this
->t('Country ID');
$header['name'] = $this
->t('Name');
$header['iso3'] = $this
->t('ISO3');
$header['iso2'] = $this
->t('ISO2');
$header['currency'] = $this
->t('Currency');
return $header + parent::buildHeader();
}