You are here

private function ViewsConditionalField::markup in Views Conditional 8

Create renderable markup for field values.

Parameters

$value: The value to be displayed.

Return value

The rendered value.

1 call to ViewsConditionalField::markup()
ViewsConditionalField::render in src/Plugin/views/field/ViewsConditionalField.php
Renders the field.

File

src/Plugin/views/field/ViewsConditionalField.php, line 239

Class

ViewsConditionalField
Field handler to flag the node type.

Namespace

Drupal\views_conditional\Plugin\views\field

Code

private function markup($value) {
  $value = [
    '#markup' => $value,
  ];
  return \Drupal::service('renderer')
    ->render($value);
}