OrganizationTypeListBuilder.php in Drupal PM (Project Management) 4.x
File
modules/pm_organization/src/OrganizationTypeListBuilder.php
View source
<?php
namespace Drupal\pm_organization;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class OrganizationTypeListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Organization 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);
}
}