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