protected function getFormular($organization)
    {
        /* @var $container \Organizations\Form\Organizations */
        //$services  = $this->serviceLocator;
        $forms     = $this->formManager;
        $container = $forms->get(
            'Organizations/Form',
            array(
            'mode' => $organization->getId() ? 'edit' : 'new'
            )
        );
        $container->setEntity($organization);
        $container->setParam('id', $organization->getId());
//        $container->setParam('applyId',$job->applyId);

        if ('__my__' != $this->params('id', '')) {
            $container->disableForm('employeesManagement')
                        ->disableForm('workflowSettings');
        } else {
            $container ->disableForm('organizationLogo')
                        ->disableForm('descriptionForm');
        }
        return $container;
    }
protected function getFormular($organization)
    {
        /* @var $container \Organizations\Form\Organizations */
        //$services  = $this->serviceLocator;
        $forms     = $this->formManager;
        $container = $forms->get(
            'Organizations/Form',
            array(
            'mode' => $organization->getId() ? 'edit' : 'new'
            )
        );
        $container->setEntity($organization);
        $container->setParam('id', $organization->getId());
//        $container->setParam('applyId',$job->applyId);

        if ('__my__' != $this->params('id', '')) {
            $container->disableForm('employeesManagement')
                        ->disableForm('workflowSettings');
        } else {
            $container ->disableForm('organizationLogo')
                        ->disableForm('descriptionForm');
        }
        return $container;
    }
protected function getFormular ( $ organization ) { /* @var $container \Organizations\Form\Organizations */ //$services  = $this->serviceLocator; $ forms = $ this -> formManager ; $ container = $ forms -> get ( 'Organizations/Form' , array ( 'mode' => $ organization -> getId ( ) ? 'edit' : 'new' ) ) ; $ container -> setEntity ( $ organization ) ; $ container -> setParam ( 'id' , $ organization -> getId ( ) ) ; //        $container->setParam('applyId',$job->applyId); if ( '__my__' != $ this -> params ( 'id' , '' ) ) { $ container -> disableForm ( 'employeesManagement' ) -> disableForm ( 'workflowSettings' ) ; } else { $ container -> disableForm ( 'organizationLogo' ) -> disableForm ( 'descriptionForm' ) ; } return $ container ; }
Gets the organization form container.

@param \Organizations\Entity\OrganizationInterface $organization

@return \Organizations\Form\Organizations
Gets the organization form container .