You are here

ICal.php in Opigno calendar event 3.x

Same filename and directory in other branches
  1. 8 src/iCal/ICal.php

File

src/iCal/ICal.php
View source
<?php

namespace Drupal\opigno_calendar_event\iCal;


/**
 * Class ICal.
 */
class ICal {

  /**
   * Build iCal file for events.
   *
   * @param array $params
   *   Params.
   *
   * @return bool|string
   *   Calendar event.
   */
  public function buildICalEvent(array $params) {
    $event = new ICalendarEvent($params);
    $params['events'] = [
      $event,
    ];
    $calendar = new ICalendar($params);
    return $calendar
      ->generateString();
  }

}

Classes

Namesort descending Description
ICal Class ICal.