Webform module and config export
This commit is contained in:
parent
3e6a5cbed2
commit
0e15467384
1040 changed files with 117682 additions and 0 deletions
29
web/modules/contrib/webform/src/Element/WebformLink.php
Normal file
29
web/modules/contrib/webform/src/Element/WebformLink.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\webform\Element;
|
||||
|
||||
/**
|
||||
* Provides a webform element for a link.
|
||||
*
|
||||
* @FormElement("webform_link")
|
||||
*/
|
||||
class WebformLink extends WebformCompositeBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function getCompositeElements() {
|
||||
$elements = [];
|
||||
$elements['title'] = [
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Link Title'),
|
||||
'#maxlength' => 255,
|
||||
];
|
||||
$elements['url'] = [
|
||||
'#type' => 'url',
|
||||
'#title' => t('Link URL'),
|
||||
];
|
||||
return $elements;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in a new issue