You are here

public function TypeStyle::render in Type Style 8

Renders the field.

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 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::render

1 call to TypeStyle::render()
TypeStyle::postRender in src/Plugin/views/field/TypeStyle.php
Runs after every field has been rendered.
1 method overrides TypeStyle::render()
TypeStyleModeration::render in modules/type_style_moderation/src/Plugin/views/field/TypeStyleModeration.php
Renders the field.

File

src/Plugin/views/field/TypeStyle.php, line 76

Class

TypeStyle
A handler to output and arbitrary type style.

Namespace

Drupal\type_style\Plugin\views\field

Code

public function render(ResultRow $values) {
  return type_style_get_style($this
    ->getEntity($values), $this
    ->getStyleName(), '');
}