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;
class BBBNodeTypeListController extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('BBB Content Type');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}