public function IcalDisplay::render in Views iCal 8
Renders this display.
Overrides Feed::render
File
- src/
Plugin/ views/ display/ IcalDisplay.php, line 71
Class
- IcalDisplay
- Provides a separate iCal display type.
Namespace
Drupal\views_ical\Plugin\views\displayCode
public function render() {
// Add the content disposition header if a custom filename has been used.
if (($response = $this->view
->getResponse()) && $this
->getOption('filename')) {
$response->headers
->set('Content-Disposition', 'attachment; filename="' . $this
->generateFilename($this
->getOption('filename')) . '"');
}
return parent::render();
}