WebformElementComputedInterface.php in Webform 8.5
Same filename and directory in other branches
Namespace
Drupal\webform\PluginFile
src/Plugin/WebformElementComputedInterface.phpView source
<?php
namespace Drupal\webform\Plugin;
use Drupal\webform\WebformSubmissionInterface;
/**
* Defines the interface for webform computed elements.
*/
interface WebformElementComputedInterface {
/**
* Compute value.
*
* @param array $element
* An element.
* @param \Drupal\webform\WebformSubmissionInterface $webform_submission
* A webform submission.
*
* @return string
* The computed value.
*/
public function computeValue(array $element, WebformSubmissionInterface $webform_submission);
}
Interfaces
Name | Description |
---|---|
WebformElementComputedInterface | Defines the interface for webform computed elements. |