You are here

public function WebformSubmissionStorageInterface::getSourceEntityAsOptions in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionStorageInterface.php \Drupal\webform\WebformSubmissionStorageInterface::getSourceEntityAsOptions()

Get webform submission source entities as options.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

string $entity_type: A source entity type.

Return value

array An array of source entities as options that the webform has been submitted from.

1 method overrides WebformSubmissionStorageInterface::getSourceEntityAsOptions()
WebformSubmissionStorage::getSourceEntityAsOptions in src/WebformSubmissionStorage.php
Get webform submission source entities as options.

File

src/WebformSubmissionStorageInterface.php, line 336

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

public function getSourceEntityAsOptions(WebformInterface $webform, $entity_type);