You are here

BBBNodeTypeListController.php in BigBlueButton 8

File

modules/bbb_node/src/Controller/BBBNodeTypeListController.php
View source
<?php

namespace Drupal\bbb_node\Controller;

use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;

/**
 * Provides a listing of Foo Bar.
 */
class BBBNodeTypeListController extends ConfigEntityListBuilder {

  /**
   * {@inheritdoc}
   */
  public function buildHeader() {
    $header['label'] = $this
      ->t('BBB Content Type');
    $header['id'] = $this
      ->t('Machine name');
    return $header + parent::buildHeader();
  }

  /**
   * {@inheritdoc}
   */
  public function buildRow(EntityInterface $entity) {
    $row['label'] = $entity
      ->label();
    $row['id'] = $entity
      ->id();
    return $row + parent::buildRow($entity);
  }

}

Classes

Namesort descending Description
BBBNodeTypeListController Provides a listing of Foo Bar.