function theme_node__fb_instant_article in Facebook Instant Articles 7
Theme function for the fb_instant_article node view mode.
File
- modules/
fb_instant_articles_display/ fb_instant_articles_display.module, line 238 - Hook implementations for Facebook Instant Articles Display module.
Code
function theme_node__fb_instant_article($vars) {
$node = $vars['node'];
if (isset($node->fb_instant_articles_display_wrapper)) {
/** @var \Drupal\fb_instant_articles_display\DrupalInstantArticleDisplay $wrapper */
$wrapper = $node->fb_instant_articles_display_wrapper;
return $wrapper
->getArticle()
->render();
}
}