You are here

public function ViewsBulkOperationsBulkForm::getEntity in Views Bulk Operations (VBO) 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::getEntity()
  2. 8.2 src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::getEntity()
  3. 4.0.x src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::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.

Overrides FieldPluginBase::getEntity

1 call to ViewsBulkOperationsBulkForm::getEntity()
ViewsBulkOperationsBulkForm::viewsForm in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
Form constructor for the bulk form.

File

src/Plugin/views/field/ViewsBulkOperationsBulkForm.php, line 368

Class

ViewsBulkOperationsBulkForm
Defines the Views Bulk Operations field plugin.

Namespace

Drupal\views_bulk_operations\Plugin\views\field

Code

public function getEntity(ResultRow $row) {
  return $this->viewData
    ->getEntity($row);
}