
| Current Path : /var/www/html/c12park/web/modules/contrib/webform/src/Element/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/c12park/web/modules/contrib/webform/src/Element/WebformLink.php |
<?php
namespace Drupal\webform\Element;
/**
* Provides a webform element for a link.
*
* @FormElement("webform_link")
*/
class WebformLink extends WebformCompositeBase {
/**
* {@inheritdoc}
*/
public function getInfo() {
return parent::getInfo() + ['#theme' => 'webform_composite_link'];
}
/**
* {@inheritdoc}
*/
public static function getCompositeElements(array $element) {
$elements = [];
$elements['title'] = [
'#type' => 'textfield',
'#title' => t('Link Title'),
'#maxlength' => 255,
];
$elements['url'] = [
'#type' => 'url',
'#title' => t('Link URL'),
];
return $elements;
}
}