You are here

public function XmlFieldHelperTrait::render_item in Views XML Backend 8

Renders a single item of a row.

Parameters

int $count: The index of the item inside the row.

mixed $item: The item for the field to render.

Return value

string The rendered output.

See also

\Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface

2 methods override XmlFieldHelperTrait::render_item()
Date::render_item in src/Plugin/views/field/Date.php
Renders a single item of a row.
Markup::render_item in src/Plugin/views/field/Markup.php
Renders a single item of a row.

File

src/Plugin/views/field/XmlFieldHelperTrait.php, line 165
Contains \Drupal\views_xml_backend\Plugin\views\field\XmlFieldHelperTrait.

Class

XmlFieldHelperTrait
A handler to provide an XML text field.

Namespace

Drupal\views_xml_backend\Plugin\views\field

Code

public function render_item($count, $item) {
  return $item['value'];
}