/** * @param CoreForm $form * @param string $key */ protected function setupForm(CoreForm $form, $key) { $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key)))->setAttribute('data-entry-key', $key)->setOption('control_buttons', [['class' => 'btn-danger form-collection-container-remove-button', 'icon' => 'delete-o', 'label' => 'Remove']]); }