public function FieldHandlerInterface::getValue in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getValue()
- 9 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\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 $field: Optional name of the field where the value is stored.
3 calls to FieldHandlerInterface::getValue()
- Permissions::preRender in core/
modules/ user/ src/ Plugin/ views/ field/ Permissions.php - Runs before any fields are rendered.
- PrerenderList::getItems in core/
modules/ views/ src/ Plugin/ views/ field/ PrerenderList.php - Items should be stored in the result array, if possible, as an array with 'value' as the actual displayable value of the item, plus any items that might be found in the 'alter' options array for creating links, such as…
- Roles::preRender in core/
modules/ user/ src/ Plugin/ views/ field/ Roles.php - Runs before any fields are rendered.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ FieldHandlerInterface.php, line 136
Class
- FieldHandlerInterface
- Base field handler that has no options and renders an unformatted field.
Namespace
Drupal\views\Plugin\views\fieldCode
public function getValue(ResultRow $values, $field = NULL);