public static function WebformComputedBase::computeValue in Webform 6.x
Same name in this branch
- 6.x src/Element/WebformComputedBase.php \Drupal\webform\Element\WebformComputedBase::computeValue()
- 6.x src/Plugin/WebformElement/WebformComputedBase.php \Drupal\webform\Plugin\WebformElement\WebformComputedBase::computeValue()
Same name and namespace in other branches
- 8.5 src/Element/WebformComputedBase.php \Drupal\webform\Element\WebformComputedBase::computeValue()
Compute value.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Return value
string The computed value.
Overrides WebformComputedInterface::computeValue
3 calls to WebformComputedBase::computeValue()
- WebformComputedBase::ajaxWebformComputedCallback in src/
Element/ WebformComputedBase.php - Webform computed element Ajax callback.
- WebformComputedBase::processWebformComputed in src/
Element/ WebformComputedBase.php - Processes a Webform computed token element.
- WebformComputedBase::validateWebformComputed in src/
Element/ WebformComputedBase.php - Validates an computed element.
2 methods override WebformComputedBase::computeValue()
- WebformComputedToken::computeValue in src/
Element/ WebformComputedToken.php - Compute value.
- WebformComputedTwig::computeValue in src/
Element/ WebformComputedTwig.php - Compute value.
File
- src/
Element/ WebformComputedBase.php, line 155
Class
- WebformComputedBase
- Provides a base class for 'webform_computed' elements.
Namespace
Drupal\webform\ElementCode
public static function computeValue(array $element, WebformSubmissionInterface $webform_submission) {
return $element['#template'];
}