src/DMS/Bundle/FilterBundle/Form/EventListener/DelegatingFilterListener.php
public function getRootFormCascadeOption(FormInterface $form)
    {
        if (! $form->isRoot()) {
            return $this->getRootFormCascadeOption($form->getParent());
        }

        return $form->getConfig()->getOption('cascade_filter', false);
    }
public function getRootFormCascadeOption(FormInterface $form)
    {
        if (! $form->isRoot()) {
            return $this->getRootFormCascadeOption($form->getParent());
        }

        return $form->getConfig()->getOption('cascade_filter', false);
    }
public function getRootFormCascadeOption ( FormInterface $ form ) { if ( ! $ form -> isRoot ( ) ) { return $ this -> getRootFormCascadeOption ( $ form -> getParent ( ) ) ; } return $ form -> getConfig ( ) -> getOption ( 'cascade_filter' , false ) ; }
Navigates to the Root form to define if cascading should be done.

@param FormInterface $form
@return boolean
Navigates to the Root form to define if cascading should be done .