protected function AnalyticsFormatter::getItemValue in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/AnalyticsFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\AnalyticsFormatter::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.
1 call to AnalyticsFormatter::getItemValue()
- AnalyticsFormatter::viewInstantArticle in src/
Plugin/ Field/ FieldFormatter/ AnalyticsFormatter.php - Modifies the given instant article with the contents of this field.
1 method overrides AnalyticsFormatter::getItemValue()
- AnalyticsLinkFormatter::getItemValue in src/
Plugin/ Field/ FieldFormatter/ AnalyticsLinkFormatter.php - Return the value for the ad that we are interested in.
File
- src/
Plugin/ Field/ FieldFormatter/ AnalyticsFormatter.php, line 92
Class
- AnalyticsFormatter
- Plugin implementation of the 'fbia_analytics' formatter.
Namespace
Drupal\fb_instant_articles\Plugin\Field\FieldFormatterCode
protected function getItemValue(FieldItemInterface $item) {
return $item->value;
}