You are here

public function SearchApiEntityFieldExport::render_item in REST Views 2.0.x

File

modules/rest_views_search_api/src/Plugin/views/field/SearchApiEntityFieldExport.php, line 47

Class

SearchApiEntityFieldExport
Display Search API Content Datasource field data in a serialized display.

Namespace

Drupal\rest_views_search_api\Plugin\views\field

Code

public function render_item($count, $item) {
  $rendered = $item['rendered'];
  if (isset($rendered['#type']) && $rendered['#type'] === 'data') {
    return $rendered['#data'];
  }
  return parent::render_item($count, $item);
}