interface MediaInterface in Views TimelineJS integration 8.3
Provides an interface for defining TimelineJS3 media objects.
Hierarchy
- interface \Drupal\views_timelinejs\TimelineJS\ObjectInterface
- interface \Drupal\views_timelinejs\TimelineJS\MediaInterface
Expanded class hierarchy of MediaInterface
All classes that implement MediaInterface
File
- src/
TimelineJS/ MediaInterface.php, line 8
Namespace
Drupal\views_timelinejs\TimelineJSView source
interface MediaInterface extends ObjectInterface {
/**
* Sets the caption for this media.
*
* @param string $text
* The caption text.
*/
public function setCaption($text);
/**
* Sets the credit for this media.
*
* @param string $text
* The credit text.
*/
public function setCredit($text);
/**
* Sets the thumbnail image URL for this media.
*
* @param string $url
* The thumbnail image URL.
*/
public function setThumbnail($url);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaInterface:: |
public | function | Sets the caption for this media. | 1 |
MediaInterface:: |
public | function | Sets the credit for this media. | 1 |
MediaInterface:: |
public | function | Sets the thumbnail image URL for this media. | 1 |
ObjectInterface:: |
public | function | Creates an array representing the TimelineJS javascript object. | 7 |