InstagramEmbedFetcherInterface.php in Media entity Instagram 8.2
Same filename and directory in other branches
Namespace
Drupal\media_entity_instagramFile
src/InstagramEmbedFetcherInterface.phpView source
<?php
namespace Drupal\media_entity_instagram;
/**
* Defines a wrapper around the Instagram oEmbed call.
*/
interface InstagramEmbedFetcherInterface {
/**
* Retrieves a instagram post by its shortcode.
*
* @param int $shortcode
* The instagram post shortcode.
* @param bool $hidecaption
* Indicates if the caption should be hidden in the html.
* @param bool $maxWidth
* Max width of the instagram widget.
*
* @return array
* The instagram oEmbed information.
*/
public function fetchInstagramEmbed($shortcode, $hidecaption = FALSE, $maxWidth = NULL);
}
Interfaces
Name | Description |
---|---|
InstagramEmbedFetcherInterface | Defines a wrapper around the Instagram oEmbed call. |