Last active
February 18, 2021 12:41
Code for the article: https://aleksandarjakovljevic.com/sonata-admin-modify-validation-groups-in-an-admin-extension/ part #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// .... | |
public function getFormBuilder() | |
{ | |
$this->formOptions['data_class'] = $this->getClass(); | |
$formBuilder = $this->getFormContractor()->getFormBuilder( | |
$this->getUniqid(), | |
$this->formOptions | |
); | |
$this->defineFormBuilder($formBuilder); | |
return $formBuilder; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment