You are here

private function DrupalInstantArticleDisplay::fieldFormatCopyright in Facebook Instant Articles 7

Formatter for copyright.

Parameters

$items:

Footer $footer:

1 call to DrupalInstantArticleDisplay::fieldFormatCopyright()
DrupalInstantArticleDisplay::fieldFormatterView in modules/fb_instant_articles_display/src/DrupalInstantArticleDisplay.php

File

modules/fb_instant_articles_display/src/DrupalInstantArticleDisplay.php, line 355
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_display

Code

private function fieldFormatCopyright($items, $footer) {

  // We can only have a single copyright line.
  // @todo sanitize text before sending off to FB IA SDK?
  if (!empty($items[0]['value'])) {
    $footer
      ->withCopyright($items[0]['value']);
  }
}