Bundle/CoreBundle/Twig/Extension/CmsExtension.php
public function isBusinessEntityAllowed($formEntityName, View $view)
    {
        //the result
        $isBusinessEntityAllowed = false;

        if ($view instanceof BusinessTemplate || $view instanceof BusinessPage) {
            //are we using the same business entity
            if ($formEntityName === $view->getBusinessEntityId()) {
                $isBusinessEntityAllowed = true;
            }
        }

        return $isBusinessEntityAllowed;
    }
public function isBusinessEntityAllowed($formEntityName, View $view)
    {
        //the result
        $isBusinessEntityAllowed = false;

        if ($view instanceof BusinessTemplate || $view instanceof BusinessPage) {
            //are we using the same business entity
            if ($formEntityName === $view->getBusinessEntityId()) {
                $isBusinessEntityAllowed = true;
            }
        }

        return $isBusinessEntityAllowed;
    }
public function isBusinessEntityAllowed ( $ formEntityName , View $ view ) { //the result $ isBusinessEntityAllowed = false ; if ( $ view instanceof BusinessTemplate || $ view instanceof BusinessPage ) { //are we using the same business entity if ( $ formEntityName === $ view -> getBusinessEntityId ( ) ) { $ isBusinessEntityAllowed = true ; } } return $ isBusinessEntityAllowed ; }
Is the business entity type allowed for the widget and the view context.

@param string $formEntityName The business entity name
@param View   $view           The view

@return bool Does the form allows this kind of business entity in this view
Is the business entity type allowed for the widget and the view context .