* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Extension\DataCollector; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormView; /** * Extracts arrays of information out of forms. * * @since 2.4 * @author Bernhard Schussek */ interface FormDataExtractorInterface { /** * Extracts the configuration data of a form. * * @param FormInterface $form The form * * @return array Information about the form's configuration */ public function extractConfiguration(FormInterface $form); /** * Extracts the default data of a form. * * @param FormInterface $form The form * * @return array Information about the form's default data */ public function extractDefaultData(FormInterface $form); /** * Extracts the submitted data of a form. * * @param FormInterface $form The form * * @return array Information about the form's submitted data */ public function extractSubmittedData(FormInterface $form); /** * Extracts the view variables of a form. * * @param FormView $view The form view * * @return array Information about the view's variables */ public function extractViewVariables(FormView $view); }