Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldHandlerInterface.php

function 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|null $field: (optional) Index of the row element. If NULL the last row is used. Defaults to NULL.

Return value

mixed The value to be rendered.

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 150

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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal