You are here

VineStream.php in Video 8.2

Same filename and directory in other branches
  1. 8 src/StreamWrapper/VineStream.php

File

src/StreamWrapper/VineStream.php
View source
<?php

namespace Drupal\video\StreamWrapper;

use Drupal\Core\StreamWrapper\ReadOnlyStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;

/**
 * Defines a VineStream (vine://) stream wrapper class.
 */
class VineStream extends VideoRemoteStreamWrapper {
  protected static $base_url = 'https://vine.co/v';

  /**
   * {@inheritdoc}
   */
  public function getName() {
    return t('Vine');
  }

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return t('Video served by the Vine services.');
  }

  /**
   * {@inheritdoc}
   */
  public static function baseUrl() {
    return self::$base_url;
  }

}

Classes

Namesort descending Description
VineStream Defines a VineStream (vine://) stream wrapper class.