protected function InteractiveLinkFormatter::getItemValue in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 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\FieldFormatterCode
protected function getItemValue(FieldItemInterface $item) {
return $item->uri;
}