interface UrlToVideoFilterServiceInterface in URL to Video Filter 8
Same name and namespace in other branches
- 2.0.x src/Service/UrlToVideoFilterServiceInterface.php \Drupal\url_to_video_filter\Service\UrlToVideoFilterServiceInterface
Interface for the URL To Video service class.
Hierarchy
- interface \Drupal\url_to_video_filter\Service\UrlToVideoFilterServiceInterface
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\ServiceView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UrlToVideoFilterServiceInterface:: |
public | function | Converts URLs to embedded Vimeo videos. | 1 |
UrlToVideoFilterServiceInterface:: |
public | function | Converts URLs to embedded YouTube videos. | 1 |