improvements-2.x-dev/src/DefaultConfigEntityListBuilder.php
src/DefaultConfigEntityListBuilder.php
<?php namespace Drupal\improvements; use Drupal\Core\Config\Entity\ConfigEntityListBuilder; use Drupal\Core\Entity\EntityInterface; class DefaultConfigEntityListBuilder extends ConfigEntityListBuilder { /** * {@inheritDoc} */ public function buildHeader(): array { $header = [ 'id' => $this->t('ID'), 'label' => $this->t('Label'), ]; return $header + parent::buildHeader(); } /** * {@inheritDoc} */ public function buildRow(EntityInterface $entity): array { $row['id'] = $entity->id(); $row['label'] = $entity->label(); return $row + parent::buildRow($entity); } }