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

Breadcrumb

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

function 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 method overrides FieldHandlerInterface::getEntity()
FieldPluginBase::getEntity in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Gets the entity matching the current row and relationship.

File

core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php, line 133

Class

FieldHandlerInterface
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

public function getEntity(ResultRow $values);

API Navigation

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