public function DrupalInstantArticleDisplay::getArticle in Facebook Instant Articles 7
Gets the wrapped InstantArticle object.
Also invokes a hook to allow other modules to alter the InstantArticle object before render or any other operation.
Return value
\Facebook\InstantArticles\Elements\InstantArticle
See also
hook_fb_instant_articles_display_instant_article_alter()
File
- modules/
fb_instant_articles_display/ src/ DrupalInstantArticleDisplay.php, line 131 - Contains \Drupal\fb_instant_articles_display\DrupalInstantArticleDisplay.
Class
- DrupalInstantArticleDisplay
- Facebook Instant Article node wrapper class. Builds up an InstantArticle object using field formatters.
Namespace
Drupal\fb_instant_articles_displayCode
public function getArticle() {
drupal_alter('fb_instant_articles_display_instant_article', $this->instantArticle, $this->node);
return $this->instantArticle;
}