| 1 | <?php |
||
| 7 | class VimeoProvider extends AbstractOembedProvider implements ProviderInterface, EmbeddableProviderInterface |
||
| 8 | { |
||
| 9 | const URL_OEMBED = 'https://vimeo.com/api/oembed.json?url=http://vimeo.com/%s'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param $value |
||
| 13 | * @return string |
||
| 14 | * @throws \Exception |
||
| 15 | */ |
||
| 16 | 3 | public function parseProviderReference($value) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $id |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getOembedUrl($id) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getIcon() |
||
| 45 | { |
||
| 46 | return 'fa fa-vimeo'; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getName() |
||
| 53 | { |
||
| 54 | return 'vimeo'; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getType() |
||
| 64 | } |
||
| 65 |