You are here

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

Overrides Drupal\views\Plugin\views\field\FieldPluginBase::render().

Overrides FieldPluginBase::render

File

tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php, line 60
Definition of Drupal\views_test_data\Plugin\views\field\FieldTest.

Class

FieldTest
Plugin annotation @Plugin( id = "test_field", title = @Translation("Test field plugin"), help = @Translation("Provides a generic field test plugin.") )

Namespace

Drupal\views_test_data\Plugin\views\field

Code

function render($values) {
  return $this
    ->sanitizeValue($this
    ->getTestValue());
}