CrossdomainListController.php in Crossdomain 8
File
lib/Drupal/crossdomain/Controller/CrossdomainListController.php
View source
<?php
namespace Drupal\crossdomain\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListController;
use Drupal\Core\Entity\EntityInterface;
class CrossdomainListController extends ConfigEntityListController {
public function buildHeader() {
$header['label'] = $this
->t('Domain');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabel($entity);
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}