You are here

public function HeartbeatMessageField::render_item in Heartbeat 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.

Overrides MultiItemsFieldHandlerInterface::render_item

File

src/Plugin/views/field/HeartbeatMessageField.php, line 62

Class

HeartbeatMessageField
A handler to provide a field that is completely custom by the administrator.

Namespace

Drupal\heartbeat\Plugin\views\field

Code

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