You are here

DateRecurOccurrenceListBuilder.php in Recurring Dates Field 3.0.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;

/**
 * Defines a class to build a listing of interpreter entities.
 */
class DateRecurOccurrenceListBuilder extends ConfigEntityListBuilder {

  /**
   * {@inheritdoc}
   */
  public function buildHeader() : array {
    $header['label'] = $this
      ->t('Name');
    return $header + parent::buildHeader();
  }

  /**
   * {@inheritdoc}
   */
  public function buildRow(EntityInterface $entity) : array {
    $row['label'] = $entity
      ->label();
    return $row + parent::buildRow($entity);
  }

}

Classes

Namesort descending Description
DateRecurOccurrenceListBuilder Defines a class to build a listing of interpreter entities.