You are here

function Custom::render in Views (for Drupal 7) 8.3

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

lib/Drupal/views/Plugin/views/field/Custom.php, line 46
Definition of Drupal\views\Plugin\views\field\Custom.

Class

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

Namespace

Drupal\views\Plugin\views\field

Code

function render($values) {

  // Return the text, so the code never thinks the value is empty.
  return $this->options['alter']['text'];
}