public function WebformElementEntityReferenceInterface::getTargetEntity in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementEntityReferenceInterface.php \Drupal\webform\Plugin\WebformElementEntityReferenceInterface::getTargetEntity()
Get referenced entity.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
array $options: An array of options.
Return value
\Drupal\Core\Entity\EntityInterface The referenced entity.
1 method overrides WebformElementEntityReferenceInterface::getTargetEntity()
- WebformManagedFileBase::getTargetEntity in src/
Plugin/ WebformElement/ WebformManagedFileBase.php - Get referenced entity.
File
- src/
Plugin/ WebformElementEntityReferenceInterface.php, line 36
Class
- WebformElementEntityReferenceInterface
- Provides an 'entity_reference' interface used to detect entity reference elements.
Namespace
Drupal\webform\PluginCode
public function getTargetEntity(array $element, WebformSubmissionInterface $webform_submission, array $options = []);