function FieldPluginBase::getValue

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::getValue()
  2. 10 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::getValue()
  3. 8.9.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::getValue()
3 calls to FieldPluginBase::getValue()
HistoryUserTimestamp::render in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
Renders the field.
Permissions::preRender in core/modules/user/src/Plugin/views/field/Permissions.php
Runs before any fields are rendered.
Url::render in core/modules/views/src/Plugin/views/field/Url.php
Renders the field.

File

core/modules/views/src/Plugin/views/field/FieldPluginBase.php, line 419

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

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

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