You are here

public function ViewsIcalHelperInterface::addDateRecurEvent in Views iCal 8

Adds an event.

This is used when the date_field type is `date_recur`.

Parameters

\Eluceo\iCal\Component\Event[] $events: Set of events where the new event will be added.

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to be used for creating the event.

\DateTimeZone $timezone: Timezone data to be specified to the event.

array $field_mapping: Views field option and entity field name mapping. Example: [ 'date_field' => 'field_event_date', 'summary_field' => 'field_event_summary', 'description_field' => 'field_event_description', ] End of example.

See also

\Drupal\views_ical\Plugin\views\style\Ical::defineOptions

1 method overrides ViewsIcalHelperInterface::addDateRecurEvent()
ViewsIcalHelper::addDateRecurEvent in src/ViewsIcalHelper.php
Adds an event.

File

src/ViewsIcalHelperInterface.php, line 64

Class

ViewsIcalHelperInterface
Contract for ViewsIcalHelper.

Namespace

Drupal\views_ical

Code

public function addDateRecurEvent(array &$events, ResultRow $row, \DateTimeZone $timezone, array $field_mapping) : void;