TaxonomyMenuListBuilder.php in Zircon Profile 8
File
modules/taxonomy_menu/src/Controller/TaxonomyMenuListBuilder.php
View source
<?php
namespace Drupal\taxonomy_menu\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class TaxonomyMenuListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Taxonomy Menu');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabel($entity);
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}