Commit c981dddd authored by dravenk's avatar dravenk Committed by Jaymz Rhime
Browse files

Issue #3259068 by dravenk: Support outlook organization office.com

parent cf4e3edb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  },
  "require": {
    "drupal/core": "^8 || ^9",
    "spatie/calendar-links": "^1.4"
    "spatie/calendar-links": "^1.7"
  },
  "suggest": {
    "drupal/token": "Enables addtocal token ui and field tokens."
+6 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ use Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeCustomFormatter;
use Spatie\CalendarLinks\Generators\Google;
use Spatie\CalendarLinks\Generators\Ics;
use Spatie\CalendarLinks\Generators\WebOutlook;
use Spatie\CalendarLinks\Generators\WebOffice;
use Spatie\CalendarLinks\Generators\Yahoo;
use Spatie\CalendarLinks\Link;
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -245,6 +246,11 @@ class AddtocalView extends DateTimeCustomFormatter {
            'aria-label' => $this->t('Add to Outlook.com Calendar'),
            'generator' => new WebOutlook(),
          ],
          'web_office' => [
            'title' => $this->t('Office.com'),
            'aria-label' => $this->t('Add to Office.com Calendar'),
            'generator' => new WebOffice(),
          ],
          'ics' => [
            'title' => $this->t('iCal / MS Outlook'),
            'aria-label' => $this->t('Add to iCal / MS Outlook'),