protected function TweetHTMLFormatterType::viewValue in Tweet Feed 4.x
Generate the output appropriate for one field item.
Parameters
\Drupal\Core\Field\FieldItemInterface $item: One field item.
Return value
string The textual output generated.
1 call to TweetHTMLFormatterType::viewValue()
- TweetHTMLFormatterType::viewElements in src/
Plugin/ Field/ FieldFormatter/ TweetHTMLFormatterType.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ TweetHTMLFormatterType.php, line 72
Class
- TweetHTMLFormatterType
- Plugin implementation of the 'user_mentions_formatter_type' formatter.
Namespace
Drupal\tweet_feed\Plugin\Field\FieldFormatterCode
protected function viewValue(FieldItemInterface $item) {
$values = $item
->toArray();
$display = $values['value'];
return $display;
}