You are here

public function DateRecurFieldSimpleRender::getValue in Recurring Dates Field 8

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 EntityField::getValue

File

src/Plugin/views/field/DateRecurFieldSimpleRender.php, line 56

Class

DateRecurFieldSimpleRender
A handler to provide a field that is completely custom by the administrator.

Namespace

Drupal\date_recur\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};
  }
}