You are here

interface InstagramEmbedFetcherInterface in Media entity Instagram 8

Same name and namespace in other branches
  1. 8.2 src/InstagramEmbedFetcherInterface.php \Drupal\media_entity_instagram\InstagramEmbedFetcherInterface

Defines a wrapper around the Instagram oEmbed call.

Hierarchy

Expanded class hierarchy of InstagramEmbedFetcherInterface

All classes that implement InstagramEmbedFetcherInterface

File

src/InstagramEmbedFetcherInterface.php, line 8

Namespace

Drupal\media_entity_instagram
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
InstagramEmbedFetcherInterface::fetchInstagramEmbed public function Retrieves a instagram post by its shortcode. 1