public function WebformTermsOfService::getInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformTermsOfService.php \Drupal\webform\Element\WebformTermsOfService::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Checkbox::getInfo
File
- src/
Element/ WebformTermsOfService.php, line 32
Class
- WebformTermsOfService
- Provides a webform terms of service element.
Namespace
Drupal\webform\ElementCode
public function getInfo() {
return [
'#return_value' => TRUE,
'#terms_type' => static::TERMS_MODAL,
'#terms_title' => '',
'#terms_content' => '',
] + parent::getInfo();
}