/** * {@inheritdoc} */ public function buildEditForm(FormMapper $formMapper, BlockInterface $block) { $formMapper->add('translations', 'orangegate_translations', array('label' => false, 'locales' => $block->getSite()->getLocales(), 'fields' => array('enabled' => array('field_type' => 'checkbox', 'required' => false, 'label' => 'Povoleno'), 'settings' => array('field_type' => 'sonata_type_immutable_array', 'label' => false, 'keys' => array(array($this->getBlockBuilder($formMapper), null, array())))))); }
/** * {@inheritdoc} */ public function buildEditForm(FormMapper $formMapper, BlockInterface $block) { $formMapper->add('translations', 'orangegate_translations', array('label' => false, 'locales' => $block->getSite()->getLocales(), 'fields' => array('enabled' => array('field_type' => 'checkbox', 'required' => false), 'settings' => array('field_type' => 'sonata_type_immutable_array', 'label' => false, 'keys' => array(array('content', 'orangegate_simple_formatter_type', array('ckeditor_context' => 'formatter'))))))); }