Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ConfigTestListController.php 740 B
<?php
/**
* @file
* Contains \Drupal\config_test\ConfigTestListController.
*/
namespace Drupal\config_test;
use Drupal\Core\Config\Entity\ConfigEntityListController;
use Drupal\Core\Entity\EntityInterface;
/**
* Provides a list controller for config_test.
*/
class ConfigTestListController extends ConfigEntityListController {
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header['label'] = t('Label');
$header['id'] = t('Machine name');
return $header + parent::buildHeader();
}
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row['label'] = $this->getLabel($entity);
$row['id'] = $entity->id();
return $row + parent::buildRow($entity);
}
}