public function FieldPluginBase::getValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::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.
Overrides FieldHandlerInterface::getValue
26 calls to FieldPluginBase::getValue()
- Boolean::render in core/
modules/ views/ src/ Plugin/ views/ field/ Boolean.php - Renders the field.
- Date::render in core/
modules/ views/ src/ Plugin/ views/ field/ Date.php - Renders the field.
- DblogMessage::render in core/
modules/ dblog/ src/ Plugin/ views/ field/ DblogMessage.php - Renders the field.
- DblogOperations::render in core/
modules/ dblog/ src/ Plugin/ views/ field/ DblogOperations.php - Renders the field.
- EntityLabel::preRender in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLabel.php - Runs before any fields are rendered.
1 method overrides FieldPluginBase::getValue()
- Field::getValue in core/
modules/ views/ src/ Plugin/ views/ field/ Field.php - Gets the value that's supposed to be rendered.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php, line 405 - Contains \Drupal\views\Plugin\views\field\FieldPluginBase.
Class
- FieldPluginBase
- Base class for views fields.
Namespace
Drupal\views\Plugin\views\fieldCode
public function getValue(ResultRow $values, $field = NULL) {
$alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
if (isset($values->{$alias})) {
return $values->{$alias};
}
}