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