Commit 866a6e5c authored by anon's avatar anon

by anon: Changed Linkit element to use Textfield::preRenderTextfield()

parent f2994260
......@@ -83,21 +83,10 @@ class Linkit extends FormElement {
* Prepares a #type 'linkit' render element for input.html.twig.
* @param array $element
* An associative array containing the properties of the element.
* Properties used: #title, #value, #description, #size, #attributes.
* @return array
* The $element with prepared variables ready for input.html.twig.
* {@inheritdoc}
public static function preRenderLinkitElement($element) {
$element['#attributes']['type'] = 'text';
Element::setAttributes($element, ['id', 'name', 'value', 'size']);
static::setAttributes($element, ['form-text']);
return $element;
return Textfield::preRenderTextfield($element);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment