public function TimelineMedia::setCaption in Views TimelineJS integration 7.3
Sets the caption for this media.
Parameters
string $text: The caption text.
Overrides TimelineMediaInterface::setCaption
File
- src/
TimelineMedia.php, line 43
Class
- TimelineMedia
- Defines a TimelineJS3 media object.
Code
public function setCaption($text) {
$this->caption = $text;
}