public function getFormElementConfig(FormElementInterface $element) { $config = new FormElementConfig($element); $builders = $this->getFieldBuilders($element->getType()); foreach ($builders as $builder) { $builder->buildFormConfig($config); } return $config; }