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.
Files
opencase/modules/opencase_reporting/src/OpenCaseReportListBuilder.php
2018-09-17 12:24:43 +01:00

30 lines
599 B
PHP

<?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() {
$header['label'] = $this->t('Report');
return $header + parent::buildHeader();
}
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity->label();
return $row + parent::buildRow($entity);
}
}