public function ViewsJsonField::renderField in Views Json Source 8
Same name and namespace in other branches
- 1.x src/Plugin/views/field/ViewsJsonField.php \Drupal\views_json_source\Plugin\views\field\ViewsJsonField::renderField()
Renders field.
1 call to ViewsJsonField::renderField()
- ViewsJsonField::render in src/
Plugin/ views/ field/ ViewsJsonField.php - Render.
File
- src/
Plugin/ views/ field/ ViewsJsonField.php, line 35
Class
- ViewsJsonField
- Base field handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\fieldCode
public function renderField($value) {
if ($this->options['trusted_html'] == 1) {
return array(
'#markup' => $value,
);
}
else {
return Html::escape($value);
}
}