You are here

interface UrlToVideoFilterServiceInterface in URL to Video Filter 8

Same name and namespace in other branches
  1. 2.0.x src/Service/UrlToVideoFilterServiceInterface.php \Drupal\url_to_video_filter\Service\UrlToVideoFilterServiceInterface

Interface for the URL To Video service class.

Hierarchy

Expanded class hierarchy of UrlToVideoFilterServiceInterface

All classes that implement UrlToVideoFilterServiceInterface

1 file declares its use of UrlToVideoFilterServiceInterface
FilterUrlToVideo.php in src/Plugin/Filter/FilterUrlToVideo.php

File

src/Service/UrlToVideoFilterServiceInterface.php, line 8

Namespace

Drupal\url_to_video_filter\Service
View source
interface UrlToVideoFilterServiceInterface {

  /**
   * Converts URLs to embedded YouTube videos.
   *
   * @param string $text
   *   The text to be parsed for YouTube URLs.
   *
   * @return array
   *   An array containing the following keys:
   *   - text: The text with the URLs replaced by the YouTube embed code
   *   - url_found: A boolean indicating whether any URLs were found in
   *     the given text.
   */
  public function convertYouTubeUrls($text);

  /**
   * Converts URLs to embedded Vimeo videos.
   *
   * @param string $text
   *   The text to be parsed for Vimeo URLs.
   *
   * @return array
   *   An array containing the following keys:
   *   - text: The text with the URLs replaced by the YouTube embed code
   *   - url_found: A boolean indicating whether any URLs were found in
   *     the given text.
   */
  public function convertVimeoUrls($text);

}

Members

Namesort descending Modifiers Type Description Overrides
UrlToVideoFilterServiceInterface::convertVimeoUrls public function Converts URLs to embedded Vimeo videos. 1
UrlToVideoFilterServiceInterface::convertYouTubeUrls public function Converts URLs to embedded YouTube videos. 1