function FieldHandlerInterface::getValue

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getValue()
  2. 10 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getValue()
  3. 11.x core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getValue()

Gets the value that's supposed to be rendered.

This api exists so that other modules can easy set the values of the field without having the need to change the render method as well.

Parameters

\Drupal\views\ResultRow $values: An object containing all retrieved values.

string $field: Optional name of the field where the value is stored.

1 method overrides FieldHandlerInterface::getValue()
FieldPluginBase::getValue in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Gets the value that's supposed to be rendered.

File

core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php, line 136

Class

FieldHandlerInterface
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

public function getValue(ResultRow $values, $field = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.