public function load()
{
$parameters = $this->getConfig();
$property = $this->getProperty();
$textstring = new Element\Text($this->getName());
$textstring->setAttribute('class', 'form-control');
$textstring->setLabel($property->getName());
$textstring->setAttribute('id', $this->getName());
$textstring->setValue($this->getValue());
$textstring->setAttribute('required', $property->isRequired());
if (!empty($parameters['length'])) {
$textstring->setAttribute('maxlength', $parameters['length']);
}
return $textstring;
}