public function EventSeriesListBuilder::buildRow in Booking and Availability Management Tools for Drupal 8
Builds a row for an entity in the entity listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.
Return value
array A render array structure of fields for this entity.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- modules/
bat_event_series/ src/ EventSeriesListBuilder.php, line 75 - Contains \Drupal\bat_event_series\EventSeriesListBuilder.
Class
- EventSeriesListBuilder
- Defines a class to build a listing of Event entities.
Namespace
Drupal\bat_event_seriesCode
public function buildRow(EntityInterface $entity) {
$row['id'] = $entity
->id();
$row['label'] = $entity
->label();
$row['rrule'] = $entity
->getRRule();
return $row + parent::buildRow($entity);
}