Webform module and config export

This commit is contained in:
Rob Davies 2017-03-16 15:29:07 +00:00
parent 3e6a5cbed2
commit 0e15467384
1040 changed files with 117682 additions and 0 deletions

View 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;
}
}