ConfigTestListBuilder.php in Drupal 10
File
core/modules/config/tests/config_test/src/ConfigTestListBuilder.php
View source
<?php
namespace Drupal\config_test;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class ConfigTestListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = t('Label');
$header['id'] = t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}