
| Current Path : /var/www/html/12park/web/modules/contrib/webform/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/web/modules/contrib/webform/src/WebformSubmissionGenerateInterface.php |
<?php
namespace Drupal\webform;
/**
* Defines an interface for webform submission generation.
*
* @see \Drupal\webform\WebformSubmissionGenerate
* @see \Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerate
*/
interface WebformSubmissionGenerateInterface {
/**
* Generate webform submission data.
*
* @param \Drupal\webform\WebformInterface $webform
* The webform this submission will be added to.
*
* @return array
* An associative array containing webform submission data.
*/
public function getData(WebformInterface $webform);
/**
* Get test value for a webform element.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
* @param string $name
* The name of the element.
* @param array $element
* The FAPI element.
* @param array $options
* Options used to generate a test value.
*
* @return array|int|null
* An array containing multiple values or a single value.
*/
public function getTestValue(WebformInterface $webform, $name, array $element, array $options = []);
}