public function buildForm(FormBuilderInterface $builder, array $options)
{
/* @var TypeSchema $typeSchema */
$typeSchema = $options['mao']->typeSchema();
foreach ($typeSchema->getDefinitions() as $fieldName => $definition) {
switch ((string) $definition->type()) {
case Type::text():
$this->buildTextType($builder, $options, $fieldName, $definition);
break;
case Type::bool():
$this->buildBoolType($builder, $options, $fieldName, $definition);
break;
}
}
}