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 | 4 | public function parseProviderReference($value): string |
|
31 | |||
32 | /** |
||
33 | * @param string $id |
||
34 | * @return string |
||
35 | */ |
||
36 | 1 | public function getOembedUrl($id): string |
|
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | 12 | public function getIcon(): string |
|
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 13 | public function getName(): string |
|
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | 1 | public function getType(): string |
|
64 | } |
||
65 |