SocialAddToCalendarInterface.php in Open Social 8.9
Same filename and directory in other branches
- 10.3.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarInterface.php
- 10.0.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarInterface.php
- 10.1.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarInterface.php
- 10.2.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarInterface.php
Namespace
Drupal\social_event_addtocal\PluginFile
modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarInterface.phpView source
<?php
namespace Drupal\social_event_addtocal\Plugin;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\node\NodeInterface;
/**
* Defines an interface for Social add to calendar plugins.
*/
interface SocialAddToCalendarInterface extends PluginInspectionInterface {
/**
* Returns plugin name for label.
*
* @return \Drupal\Core\StringTranslation\TranslatableMarkup
* Plugin name.
*/
public function getName();
/**
* Returns the 'Add to calendar' link.
*
* @param \Drupal\node\NodeInterface $node
* The node entity.
*
* @return \Drupal\Core\Url
* Url object.
*/
public function generateUrl(NodeInterface $node);
/**
* Returns array of event settings for url options.
*
* @param \Drupal\node\NodeInterface $node
* The node entity.
*
* @return array
* Array of settings.
*/
public function generateSettings(NodeInterface $node);
/**
* Returns array of event dates for calendar.
*
* @param \Drupal\node\NodeInterface $node
* The node entity.
*
* @return array
* Array of dates values.
*/
public function getEventDates(NodeInterface $node);
/**
* Returns the event description for calendar.
*
* @param \Drupal\node\NodeInterface $node
* The node entity.
*
* @return string
* Event description.
*/
public function getEventDescription(NodeInterface $node);
/**
* Returns the event location for calendar.
*
* @param \Drupal\node\NodeInterface $node
* The node entity.
*
* @return string
* Event location.
*/
public function getEventLocation(NodeInterface $node);
}
Interfaces
Name | Description |
---|---|
SocialAddToCalendarInterface | Defines an interface for Social add to calendar plugins. |