You are here

interface MediaInterface in Views TimelineJS integration 8.3

Provides an interface for defining TimelineJS3 media objects.

Hierarchy

Expanded class hierarchy of MediaInterface

All classes that implement MediaInterface

File

src/TimelineJS/MediaInterface.php, line 8

Namespace

Drupal\views_timelinejs\TimelineJS
View 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

Namesort descending Modifiers Type Description Overrides
MediaInterface::setCaption public function Sets the caption for this media. 1
MediaInterface::setCredit public function Sets the credit for this media. 1
MediaInterface::setThumbnail public function Sets the thumbnail image URL for this media. 1
ObjectInterface::buildArray public function Creates an array representing the TimelineJS javascript object. 7