You are here

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\Controller
View 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

Namesort descending Modifiers Type Description Overrides
CrossdomainListController::buildHeader public function Overrides Drupal\Core\Entity\EntityListController::buildHeader().
CrossdomainListController::buildRow public function Overrides Drupal\Core\Entity\EntityListController::buildRow().