class CrossdomainListController in Crossdomain 8
Provides a listing of domains.
Hierarchy
- class \Drupal\crossdomain\Controller\CrossdomainListController extends \Drupal\Core\Config\Entity\ConfigEntityListController
Expanded class hierarchy of CrossdomainListController
File
- lib/
Drupal/ crossdomain/ Controller/ CrossdomainListController.php, line 14
Namespace
Drupal\crossdomain\ControllerView source
class CrossdomainListController extends ConfigEntityListController {
/**
* Overrides Drupal\Core\Entity\EntityListController::buildHeader().
*/
public function buildHeader() {
$header['label'] = $this
->t('Domain');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
/**
* Overrides Drupal\Core\Entity\EntityListController::buildRow().
*/
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabel($entity);
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CrossdomainListController:: |
public | function | Overrides Drupal\Core\Entity\EntityListController::buildHeader(). | |
CrossdomainListController:: |
public | function | Overrides Drupal\Core\Entity\EntityListController::buildRow(). |