public function WebformComputedBase::getElementSelectorInputValue in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/WebformComputedBase.php \Drupal\webform\Plugin\WebformElement\WebformComputedBase::getElementSelectorInputValue()
Get an element's (sub)input selector value.
Parameters
string $selector: CSS :input selector.
string $trigger: Trigger from #states.
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Return value
mixed The element input's value.
Overrides WebformElementBase::getElementSelectorInputValue
File
- src/
Plugin/ WebformElement/ WebformComputedBase.php, line 312
Class
- WebformComputedBase
- Provides a base class for 'webform_computed' elements.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getElementSelectorInputValue($selector, $trigger, array $element, WebformSubmissionInterface $webform_submission) {
return (string) $this
->computeValue($element, $webform_submission);
}