You are here

MediaInterface.php in Views TimelineJS integration 8.3

File

src/TimelineJS/MediaInterface.php
View source
<?php

namespace Drupal\views_timelinejs\TimelineJS;


/**
 * Provides an interface for defining TimelineJS3 media objects.
 */
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);

}

Interfaces

Namesort descending Description
MediaInterface Provides an interface for defining TimelineJS3 media objects.