interface ViewsIcalHelperInterface in Views iCal 8
Contract for ViewsIcalHelper.
Hierarchy
- interface \Drupal\views_ical\ViewsIcalHelperInterface
Expanded class hierarchy of ViewsIcalHelperInterface
All classes that implement ViewsIcalHelperInterface
1 file declares its use of ViewsIcalHelperInterface
- IcalWizard.php in src/
Plugin/ views/ style/ IcalWizard.php
File
- src/
ViewsIcalHelperInterface.php, line 11
Namespace
Drupal\views_icalView source
interface ViewsIcalHelperInterface {
/**
* Adds an event.
*
* This is used when the date_field type is `datetime` or `daterange`.
*
* @param \Eluceo\iCal\Component\Event[] $events
* Set of events where the new event will be added.
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity to be used for creating the event.
* @param \DateTimeZone $timezone
* Timezone data to be specified to the event.
* @param 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.
*
* @throws \Exception
* Throws exception if it fails to parse the datetime data from entity.
*
* @see \Drupal\views_ical\Plugin\views\style\Ical::defineOptions
*/
public function addEvent(array &$events, ResultRow $row, \DateTimeZone $timezone, array $field_mapping) : void;
/**
* Adds an event.
*
* This is used when the date_field type is `date_recur`.
*
* @param \Eluceo\iCal\Component\Event[] $events
* Set of events where the new event will be added.
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity to be used for creating the event.
* @param \DateTimeZone $timezone
* Timezone data to be specified to the event.
* @param 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 \Drupal\views_ical\Plugin\views\style\Ical::defineOptions
*/
public function addDateRecurEvent(array &$events, ResultRow $row, \DateTimeZone $timezone, array $field_mapping) : void;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ViewsIcalHelperInterface:: |
public | function | Adds an event. | 1 |
ViewsIcalHelperInterface:: |
public | function | Adds an event. | 1 |