c601075530509a13a74640322a5f12ed97c71052
[yaffs-website] / src / InstagramEmbedFetcherInterface.php
1 <?php
2
3 namespace Drupal\media_entity_instagram;
4
5 /**
6  * Defines a wrapper around the Instagram oEmbed call.
7  */
8 interface InstagramEmbedFetcherInterface {
9
10   /**
11    * Retrieves a instagram post by its shortcode.
12    *
13    * @param int $shortcode
14    *   The instagram post shortcode.
15    * @param bool $hidecaption
16    *   Indicates if the caption should be hidden in the html.
17    * @param bool $maxWidth
18    *   Max width of the instagram widget.
19    *
20    * @return array
21    *   The instagram oEmbed information.
22    */
23   public function fetchInstagramEmbed($shortcode, $hidecaption = FALSE, $maxWidth = NULL);
24
25 }