bbb-8.x-1.x-dev/modules/bbb_node/src/Controller/BBBNodeTypeListController.php
modules/bbb_node/src/Controller/BBBNodeTypeListController.php
<?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);
}
}
