public function FieldHandlerInterface::getEntity 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::getEntity()
- 9 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getEntity()
Gets the entity matching the current row and relationship.
Parameters
\Drupal\views\ResultRow $values: An object containing all retrieved values.
Return value
\Drupal\Core\Entity\EntityInterface|null Returns the entity matching the values or NULL if there is no matching entity.
1 call to FieldHandlerInterface::getEntity()
- Permissions::preRender in core/
modules/ user/ src/ Plugin/ views/ field/ Permissions.php - Runs before any fields are rendered.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ FieldHandlerInterface.php, line 123
Class
- FieldHandlerInterface
- Base field handler that has no options and renders an unformatted field.
Namespace
Drupal\views\Plugin\views\fieldCode
public function getEntity(ResultRow $values);