You are here

public function SocialAddToCalendarBase::generateUrl in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarBase.php \Drupal\social_event_addtocal\Plugin\SocialAddToCalendarBase::generateUrl()
  2. 10.0.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarBase.php \Drupal\social_event_addtocal\Plugin\SocialAddToCalendarBase::generateUrl()
  3. 10.1.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarBase.php \Drupal\social_event_addtocal\Plugin\SocialAddToCalendarBase::generateUrl()
  4. 10.2.x modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarBase.php \Drupal\social_event_addtocal\Plugin\SocialAddToCalendarBase::generateUrl()

Returns the 'Add to calendar' link.

Parameters

\Drupal\node\NodeInterface $node: The node entity.

Return value

\Drupal\Core\Url Url object.

Overrides SocialAddToCalendarInterface::generateUrl

4 methods override SocialAddToCalendarBase::generateUrl()
AddToGoogle::generateUrl in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToGoogle.php
Returns the 'Add to calendar' link.
AddToICal::generateUrl in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToICal.php
Returns the 'Add to calendar' link.
AddToOutlook::generateUrl in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToOutlook.php
Returns the 'Add to calendar' link.
AddToYahoo::generateUrl in modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendar/AddToYahoo.php
Returns the 'Add to calendar' link.

File

modules/social_features/social_event/modules/social_event_addtocal/src/Plugin/SocialAddToCalendarBase.php, line 28

Class

SocialAddToCalendarBase
Base class for Social add to calendar plugins.

Namespace

Drupal\social_event_addtocal\Plugin

Code

public function generateUrl(NodeInterface $node) {
  return Url::fromRoute('<front>');
}