You are here

interface TimelineMediaInterface in Views TimelineJS integration 7.3

Provides an interface for defining TimelineJS3 media objects.

Hierarchy

Expanded class hierarchy of TimelineMediaInterface

All classes that implement TimelineMediaInterface

File

src/TimelineMediaInterface.php, line 6

View source
interface TimelineMediaInterface extends TimelineObjectInterface {

  /**
   * 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
TimelineMediaInterface::setCaption public function Sets the caption for this media. 1
TimelineMediaInterface::setCredit public function Sets the credit for this media. 1
TimelineMediaInterface::setThumbnail public function Sets the thumbnail image URL for this media. 1
TimelineObjectInterface::buildArray public function Creates an array representing the TimelineJS javascript object. 7