You are here

public function WebformElementEntityReferenceInterface::getTargetEntities in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElementEntityReferenceInterface.php \Drupal\webform\Plugin\WebformElementEntityReferenceInterface::getTargetEntities()

Get referenced entities.

Parameters

array $element: An element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

array $options: An array of options.

Return value

array An associative array containing entities keyed by entity_id.

1 method overrides WebformElementEntityReferenceInterface::getTargetEntities()
WebformManagedFileBase::getTargetEntities in src/Plugin/WebformElement/WebformManagedFileBase.php
Get referenced entities.

File

src/Plugin/WebformElementEntityReferenceInterface.php, line 51

Class

WebformElementEntityReferenceInterface
Provides an 'entity_reference' interface used to detect entity reference elements.

Namespace

Drupal\webform\Plugin

Code

public function getTargetEntities(array $element, WebformSubmissionInterface $webform_submission, array $options = []);