private function DrupalInstantArticleDisplay::fieldFormatKicker in Facebook Instant Articles 7
Formatter for the Kicker element.
Parameters
$region:
$items:
Header $header:
1 call to DrupalInstantArticleDisplay::fieldFormatKicker()
- DrupalInstantArticleDisplay::fieldFormatterView in modules/
fb_instant_articles_display/ src/ DrupalInstantArticleDisplay.php
File
- modules/
fb_instant_articles_display/ src/ DrupalInstantArticleDisplay.php, line 294 - 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
private function fieldFormatKicker($items, $header) {
// We can only have a single kicker, so just take the first delta to
// be the kicker.
if (!empty($items[0]['value'])) {
$header
->withKicker($items[0]['value']);
}
}