You are here

function FieldPluginBase::get_value in Views (for Drupal 7) 8.3

Get 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

$values: An object containing all retrieved values.

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

62 calls to FieldPluginBase::get_value()
AccesslogPath::render in lib/Views/statistics/Plugin/views/field/AccesslogPath.php
Render the field.
AccesslogPath::render_link in lib/Views/statistics/Plugin/views/field/AccesslogPath.php
Boolean::render in lib/Drupal/views/Plugin/views/field/Boolean.php
Render the field.
Category::render in lib/Views/aggregator/Plugin/views/field/Category.php
Render the field.
Category::render_link in lib/Views/aggregator/Plugin/views/field/Category.php
Render whatever the data is as a link to the category.

... See full list

1 method overrides FieldPluginBase::get_value()
Counter::get_value in lib/Drupal/views/Plugin/views/field/Counter.php
Overrides Drupal\views\Plugin\views\field\FieldPluginBas::get_value()

File

lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 384
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

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

Namespace

Drupal\views\Plugin\views\field

Code

function get_value($values, $field = NULL) {
  $alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
  if (isset($values->{$alias})) {
    return $values->{$alias};
  }
}