You are here

protected function InteractiveFormatter::getItemValue in Facebook Instant Articles 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldFormatter/InteractiveFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\InteractiveFormatter::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.

1 call to InteractiveFormatter::getItemValue()
InteractiveFormatter::viewInstantArticle in src/Plugin/Field/FieldFormatter/InteractiveFormatter.php
Modifies the given instant article with the contents of this field.
1 method overrides InteractiveFormatter::getItemValue()
InteractiveLinkFormatter::getItemValue in src/Plugin/Field/FieldFormatter/InteractiveLinkFormatter.php
Return the value for the interactive embed that we are interested in.

File

src/Plugin/Field/FieldFormatter/InteractiveFormatter.php, line 131

Class

InteractiveFormatter
Plugin implementation of the 'fbia_interactive' formatter.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

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