public function addFormElementDefinition(FormElementDefinition $definition)
 {
     if ($definition->getName() != '') {
         $this->namedFields[$definition->getName()] = $definition;
     }
     $this->fields[] = $definition;
     $this->properties = null;
     $this->mandatoryProperties = null;
     $this->uniqueProperties = null;
     $this->protectedProperties = null;
 }
 public function render($layout)
 {
     if ($this->definition->getName()) {
         return $this->twig->render('formelement-default.twig', $this->vars);
     }
 }