public function load()
{
$config = $this->getConfig();
$property = $this->getProperty();
$textarea = new Element\Textarea($this->getName());
$textarea->setAttribute('class', 'form-control');
$textarea->setAttribute('required', $property->isRequired());
$textarea->setAttribute('id', $this->getName());
$textarea->setLabel($this->getProperty()->getName());
$textarea->setValue($this->getValue());
$config = empty($config) ? array() : $config;
foreach ($config as $key => $value) {
if (!empty($value)) {
$textarea->setAttribute($key, $value);
}
}
return $textarea;
}