public function Telephone::preview in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/Telephone.php \Drupal\webform\Plugin\WebformElement\Telephone::preview()
Generate a renderable preview of the element.
Return value
array A renderable preview of the element.
Overrides WebformElementBase::preview
File
- src/
Plugin/ WebformElement/ Telephone.php, line 258
Class
- Telephone
- Provides a 'tel' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function preview() {
return parent::preview() + [
'#international' => TRUE,
];
}