You are here

protected function InteractiveLinkFormatter::getItemValue in Facebook Instant Articles 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldFormatter/InteractiveLinkFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\InteractiveLinkFormatter::getItemValue()

Return the value for the interactive embed that we are interested in.

Parameters

\Drupal\Core\Field\FieldItemInterface $item: Field item.

Return value

mixed The value of the given field item that stores the Ad value we're interested in.

Overrides InteractiveFormatter::getItemValue

File

src/Plugin/Field/FieldFormatter/InteractiveLinkFormatter.php, line 66

Class

InteractiveLinkFormatter
Plugin implementation of the 'fbia_interactive_link' formatter.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

protected function getItemValue(FieldItemInterface $item) {
  return $item->uri;
}