public function Yahoo::generateStructure in Add to Cal 8
Generates a Yahoo! calendar link
Parameters
array $info:
Return value
Overrides AddToCalTypeInterface::generateStructure
1 call to Yahoo::generateStructure()
- Yahoo::downloadSubmit in src/
Plugin/ AddToCal/ Type/ Yahoo.php - @inheritdoc
File
- src/
Plugin/ AddToCal/ Type/ Yahoo.php, line 28
Class
- Yahoo
- Provides generic calendar type (ics).
Namespace
Drupal\addtocal\Plugin\AddToCal\TypeCode
public function generateStructure(array $info) {
$url = Url::fromUri('http://calendar.yahoo.com/', [
'query' => [
'v' => 60,
'TITLE' => $info['title'],
'ST' => $info['rfc3339']['start'],
'ET' => $info['rfc3339']['end'],
'URL' => $_SERVER['HTTP_HOST'],
'in_loc' => $info['location'],
'desc' => $info['description'],
],
]);
return $url;
}