protected function Vimeo::oEmbedData in Video Embed Field 8.2
Same name and namespace in other branches
- 8 src/Plugin/video_embed_field/Provider/Vimeo.php \Drupal\video_embed_field\Plugin\video_embed_field\Provider\Vimeo::oEmbedData()
Get the vimeo oembed data.
Return value
array An array of data from the oembed endpoint.
File
- src/
Plugin/ video_embed_field/ Provider/ Vimeo.php, line 54
Class
- Vimeo
- A Vimeo provider plugin.
Namespace
Drupal\video_embed_field\Plugin\video_embed_field\ProviderCode
protected function oEmbedData() {
return json_decode(file_get_contents('http://vimeo.com/api/oembed.json?url=' . $this
->getInput()));
}