diff --git a/src/Form/Control/ArrayArrayFactory.php b/src/Form/Control/ArrayArrayFactory.php index bf2eb27..b4fa54d 100644 --- a/src/Form/Control/ArrayArrayFactory.php +++ b/src/Form/Control/ArrayArrayFactory.php @@ -60,6 +60,11 @@ public function createFormArray(DefinitionInterface $definition, 'items' => [], ] + BasicFormPropertiesFactory::createBasicProperties($definition); + if (TRUE === $definition->getOptionsValue('closeable')) { + $form['#type'] = 'details'; + $form['#open'] = $definition->getOptionsValue('open', TRUE); + } + $propertyAccessor = FormStatePropertyAccessor::create($formState, $definition->getPropertyFormParents()); $numItems = $propertyAccessor->getProperty('numItems'); if (NULL === $numItems) {