private function EntityFieldMapper::fieldFormatCredits in Facebook Instant Articles 7.2
Formatter for credits.
Parameters
array $items:
Footer $footer:
1 call to EntityFieldMapper::fieldFormatCredits()
- EntityFieldMapper::map in modules/
fb_instant_articles_display/ src/ EntityFieldMapper.php - Builds up an InstantArticle object using field formatters.
File
- modules/
fb_instant_articles_display/ src/ EntityFieldMapper.php, line 270 - Contains \Drupal\fb_instant_articles_display\EntityFieldMapper.
Class
- EntityFieldMapper
- Class EntityFieldMapper @package Drupal\fb_instant_articles_display
Namespace
Drupal\fb_instant_articles_displayCode
private function fieldFormatCredits($items, Footer $footer) {
// We can only have a single credits group.
// @todo sanitize text before sending off to FB IA SDK?
if (!empty($items[0]['value'])) {
$footer
->withCredits($items[0]['value']);
}
}