This repository has been archived on 2022-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
2018-09-17 07:48:20 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Drupal\opencase_reporting;
|
|
|
|
|
|
|
|
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
|
|
|
|
use Drupal\Core\Entity\EntityInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides a listing of OpenCase Report entities.
|
|
|
|
*/
|
|
|
|
class OpenCaseReportListBuilder extends ConfigEntityListBuilder {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function buildHeader() {
|
2018-09-17 11:24:43 +00:00
|
|
|
$header['label'] = $this->t('Report');
|
2018-09-17 07:48:20 +00:00
|
|
|
return $header + parent::buildHeader();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function buildRow(EntityInterface $entity) {
|
|
|
|
$row['label'] = $entity->label();
|
|
|
|
return $row + parent::buildRow($entity);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|