Bundle/SeoBundle/Controller/PageSeoController.php
private function getBusinessProperties(View $view)
    {
        $businessProperties = [];

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

        return $businessProperties;
    }
private function getBusinessProperties(View $view)
    {
        $businessProperties = [];

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

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

@param View $view

@throws \Exception

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