protected function addConfigurationFields(FormInterface $form, $registryIdentifier, array $data = [])
{
// FIXME: Unknown type of $model, may crash in any moment!
$model = $this->registry->get($registryIdentifier);
// temporary solution to prevent errors while rendering unexisting rule configuration type
if (null === ($configuration = $model->getConfigurationFormType())) {
return;
}
$configurationField = $this->factory->createNamed('configuration', $configuration, $data, ['auto_initialize' => false, 'label' => false]);
$form->add($configurationField);
}