Bundle/PageBundle/Controller/BasePageController.php
protected function getBusinessProperties(BasePage $page)
    {
        $businessProperties = [];

        if ($page instanceof BusinessTemplate) {
            //we can use the business entity properties on the seo
            $businessEntity = $this->get('victoire_core.helper.business_entity_helper')->findById($page->getBusinessEntityId());
            $businessProperties = $businessEntity->getBusinessPropertiesByType('seoable');
        }

        return $businessProperties;
    }
protected function getBusinessProperties(BasePage $page)
    {
        $businessProperties = [];

        if ($page instanceof BusinessTemplate) {
            //we can use the business entity properties on the seo
            $businessEntity = $this->get('victoire_core.helper.business_entity_helper')->findById($page->getBusinessEntityId());
            $businessProperties = $businessEntity->getBusinessPropertiesByType('seoable');
        }

        return $businessProperties;
    }
protected function getBusinessProperties ( BasePage $ page ) { $ businessProperties = [ ] ; if ( $ page instanceof BusinessTemplate ) { //we can use the business entity properties on the seo $ businessEntity = $ this -> get ( 'victoire_core.helper.business_entity_helper' ) -> findById ( $ page -> getBusinessEntityId ( ) ) ; $ businessProperties = $ businessEntity -> getBusinessPropertiesByType ( 'seoable' ) ; } return $ businessProperties ; }
Return BusinessEntity seaoable properties if Page is a BusinessTemplate.

@param BasePage $page

@return array
Return BusinessEntity seaoable properties if Page is a BusinessTemplate .