public function embed(IForm $embeddedForm)
    {
        foreach ($embeddedForm->getSections() as $section) {
            $this->addSection($section);
        }

        foreach ($embeddedForm->getProcessors() as $processor) {
            $this->process($processor);
        }

        return $this;
    }
public function embed(IForm $embeddedForm)
    {
        foreach ($embeddedForm->getSections() as $section) {
            $this->addSection($section);
        }

        foreach ($embeddedForm->getProcessors() as $processor) {
            $this->process($processor);
        }

        return $this;
    }
public function embed ( IForm $ embeddedForm ) { foreach ( $ embeddedForm -> getSections ( ) as $ section ) { $ this -> addSection ( $ section ) ; } foreach ( $ embeddedForm -> getProcessors ( ) as $ processor ) { $ this -> process ( $ processor ) ; } return $ this ; }
Embeds the form sections inside the current form.

@param IForm $embeddedForm

@return static
Embeds the form sections inside the current form .