DateRecurOccurrenceListBuilder.php in Recurring Dates Field 3.x
File
src/Entity/Handlers/DateRecurOccurrenceListBuilder.php
View source
<?php
declare (strict_types=1);
namespace Drupal\date_recur\Entity\Handlers;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class DateRecurOccurrenceListBuilder extends ConfigEntityListBuilder {
public function buildHeader() : array {
$header['label'] = $this
->t('Name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) : array {
$row['label'] = $entity
->label();
return $row + parent::buildRow($entity);
}
}