interface WebformComputedInterface in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformComputedInterface.php \Drupal\webform\Element\WebformComputedInterface
Defines an interface for webform computed element.
Hierarchy
- interface \Drupal\webform\Element\WebformComputedInterface
Expanded class hierarchy of WebformComputedInterface
All classes that implement WebformComputedInterface
File
- src/
Element/ WebformComputedInterface.php, line 10
Namespace
Drupal\webform\ElementView source
interface WebformComputedInterface {
/**
* Denotes HTML.
*
* @var string
*/
const MODE_HTML = 'html';
/**
* Denotes plain text.
*
* @var string
*/
const MODE_TEXT = 'text';
/**
* Denotes markup whose content type should be detected.
*
* @var string
*/
const MODE_AUTO = 'auto';
/**
* Compute value.
*
* @param array $element
* An element.
* @param \Drupal\webform\WebformSubmissionInterface $webform_submission
* A webform submission.
*
* @return string
* The computed value.
*/
public static function computeValue(array $element, WebformSubmissionInterface $webform_submission);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebformComputedInterface:: |
public static | function | Compute value. | 1 |
WebformComputedInterface:: |
constant | Denotes markup whose content type should be detected. | ||
WebformComputedInterface:: |
constant | Denotes HTML. | ||
WebformComputedInterface:: |
constant | Denotes plain text. |