protected function AnalyticsLinkFormatter::getItemValue in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/AnalyticsLinkFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\AnalyticsLinkFormatter::getItemValue()
Return the value for the ad 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 AnalyticsFormatter::getItemValue
File
- src/
Plugin/ Field/ FieldFormatter/ AnalyticsLinkFormatter.php, line 56
Class
- AnalyticsLinkFormatter
- Plugin implementation of the 'fbia_analytics_link' formatter.
Namespace
Drupal\fb_instant_articles\Plugin\Field\FieldFormatterCode
protected function getItemValue(FieldItemInterface $item) {
return $item->uri;
}