You are here

interface SlideInterface in Views TimelineJS integration 8.3

Provides an interface for defining TimelineJS3 slides.

Hierarchy

Expanded class hierarchy of SlideInterface

All classes that implement SlideInterface

File

src/TimelineJS/SlideInterface.php, line 8

Namespace

Drupal\views_timelinejs\TimelineJS
View source
interface SlideInterface extends ObjectInterface {

  /**
   * Sets the media for this slide.
   *
   * @param \Drupal\views_timelinejs\TimelineJS\MediaInterface $media
   *   The media object.
   */
  public function setMedia(MediaInterface $media);

  /**
   * Sets the group for this slide.
   *
   * @param string $group
   *   The group name.
   */
  public function setGroup($group);

  /**
   * Sets the display date for this slide.
   *
   * @param string $display_date
   *   The display date.
   */
  public function setDisplayDate($display_date);

  /**
   * Sets the background for this slide.
   *
   * @param \Drupal\views_timelinejs\TimelineJS\BackgroundInterface $backgound
   *   The background object.
   */
  public function setBackground(BackgroundInterface $backgound);

  /**
   * Sets the unique ID for this slide.
   *
   * @param int|string $id
   *   The unique ID.
   */
  public function setUniqueId($id);

  /**
   * Sets the slide's autolink property to TRUE.
   */
  public function enableAutolink();

  /**
   * Sets the slide's autolink property to FALSE.
   */
  public function disableAutolink();

}

Members

Namesort descending Modifiers Type Description Overrides
ObjectInterface::buildArray public function Creates an array representing the TimelineJS javascript object. 7
SlideInterface::disableAutolink public function Sets the slide's autolink property to FALSE. 1
SlideInterface::enableAutolink public function Sets the slide's autolink property to TRUE. 1
SlideInterface::setBackground public function Sets the background for this slide. 1
SlideInterface::setDisplayDate public function Sets the display date for this slide. 1
SlideInterface::setGroup public function Sets the group for this slide. 1
SlideInterface::setMedia public function Sets the media for this slide. 1
SlideInterface::setUniqueId public function Sets the unique ID for this slide. 1