Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php
private function getBusinessProperties(BusinessTemplate $view)
    {
        $businessTemplateHelper = $this->get('victoire_business_page.business_page_helper');
        //the business property link to the page
        $businessEntityId = $view->getBusinessEntityId();
        $businessEntity = $this->get('victoire_core.helper.business_entity_helper')->findById($businessEntityId);

        $businessProperties = $businessTemplateHelper->getBusinessProperties($businessEntity);

        return $businessProperties;
    }
private function getBusinessProperties(BusinessTemplate $view)
    {
        $businessTemplateHelper = $this->get('victoire_business_page.business_page_helper');
        //the business property link to the page
        $businessEntityId = $view->getBusinessEntityId();
        $businessEntity = $this->get('victoire_core.helper.business_entity_helper')->findById($businessEntityId);

        $businessProperties = $businessTemplateHelper->getBusinessProperties($businessEntity);

        return $businessProperties;
    }
private function getBusinessProperties ( BusinessTemplate $ view ) { $ businessTemplateHelper = $ this -> get ( 'victoire_business_page.business_page_helper' ) ; //the business property link to the page $ businessEntityId = $ view -> getBusinessEntityId ( ) ; $ businessEntity = $ this -> get ( 'victoire_core.helper.business_entity_helper' ) -> findById ( $ businessEntityId ) ; $ businessProperties = $ businessTemplateHelper -> getBusinessProperties ( $ businessEntity ) ; return $ businessProperties ; }
Get an array of business properties by the business entity page pattern.

@param BusinessTemplate $view

@throws \Exception

@return array of business properties
Get an array of business properties by the business entity page pattern .