You are here

public function JSONDataField::advancedRender in JSON Field 8

Renders a field using advanced settings.

This renders a field normally, then decides if render-as-link and text-replacement rendering is necessary.

Parameters

\Drupal\views\ResultRow $values: The values retrieved from a single row of a view's query result.

Return value

string|\Drupal\Component\Render\MarkupInterface The advanced rendered output. If the output is safe it will be wrapped in an object that implements MarkupInterface. If it is empty or unsafe it will be a string.

Overrides FieldPluginBase::advancedRender

File

src/Plugin/views/field/JSONDataField.php, line 82

Class

JSONDataField
Field handler to present JSON data to an entity "data" display.

Namespace

Drupal\json_field\Plugin\views\field

Code

public function advancedRender(ResultRow $values) {
  return $this
    ->render($values);
}