3 namespace Drupal\config_test;
5 use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
6 use Drupal\Core\Entity\EntityInterface;
9 * Defines a class to build a listing of ConfigTest entities.
11 * @see \Drupal\config_test\Entity\ConfigTest
13 class ConfigTestListBuilder extends ConfigEntityListBuilder {
18 public function buildHeader() {
19 $header['label'] = t('Label');
20 $header['id'] = t('Machine name');
21 return $header + parent::buildHeader();
27 public function buildRow(EntityInterface $entity) {
28 $row['label'] = $entity->label();
29 $row['id'] = $entity->id();
30 return $row + parent::buildRow($entity);