You are here

class SocialAddToCalendar in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_event/modules/social_event_addtocal/src/Annotation/SocialAddToCalendar.php \Drupal\social_event_addtocal\Annotation\SocialAddToCalendar
  2. 10.0.x modules/social_features/social_event/modules/social_event_addtocal/src/Annotation/SocialAddToCalendar.php \Drupal\social_event_addtocal\Annotation\SocialAddToCalendar
  3. 10.1.x modules/social_features/social_event/modules/social_event_addtocal/src/Annotation/SocialAddToCalendar.php \Drupal\social_event_addtocal\Annotation\SocialAddToCalendar
  4. 10.2.x modules/social_features/social_event/modules/social_event_addtocal/src/Annotation/SocialAddToCalendar.php \Drupal\social_event_addtocal\Annotation\SocialAddToCalendar

Defines a Social add to calendar item annotation object.

Hierarchy

Expanded class hierarchy of SocialAddToCalendar

See also

\Drupal\social_event_addtocal\Plugin\SocialAddToCalendarManager

Plugin API

4 classes are annotated with SocialAddToCalendar
AddToGoogle in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToGoogle.php
Provides add to Google calendar plugin.
AddToICal in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToICal.php
Provides add to Google calendar plugin.
AddToOutlook in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToOutlook.php
Provides add to Google calendar plugin.
AddToYahoo in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToYahoo.php
Provides add to Google calendar plugin.

File

modules/social_features/social_event/modules/social_event_addtocal/src/Annotation/SocialAddToCalendar.php, line 15

Namespace

Drupal\social_event_addtocal\Annotation
View source
class SocialAddToCalendar extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The label of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * The url for adding to calendar.
   *
   * @var string
   */
  public $url;

  /**
   * The date modifications for all day events.
   *
   * @var string
   */
  public $endDateModification = '+ 1 day';

  /**
   * Date format for all day event.
   *
   * @var string
   */
  public $allDayFormat = 'Ymd';

  /**
   * Date format.
   *
   * @var string
   */
  public $dateFormat = 'Ymd\\THis';

  /**
   * Date format if users timezone is UTC.
   *
   * @var string
   */
  public $utcDateFormat = 'Ymd\\THis\\Z';

}

Members

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
SocialAddToCalendar::$allDayFormat public property Date format for all day event.
SocialAddToCalendar::$dateFormat public property Date format.
SocialAddToCalendar::$endDateModification public property The date modifications for all day events.
SocialAddToCalendar::$id public property The plugin ID.
SocialAddToCalendar::$label public property The label of the plugin.
SocialAddToCalendar::$url public property The url for adding to calendar.
SocialAddToCalendar::$utcDateFormat public property Date format if users timezone is UTC.