Bundle/ViewReferenceBundle/Connector/ViewReferenceRepository.php
public function findReferenceByView(View $view)
    {
        $referenceId = ViewReferenceHelper::generateViewReferenceId($view);
        $reference = $this->getOneReferenceByParameters(['id' => $referenceId], false);
        $transformer = $this->transformer->getViewReferenceTransformer(
            (string) $reference['viewNamespace'], 'array'
        );

        return  $transformer->transform($reference);
    }
public function findReferenceByView(View $view)
    {
        $referenceId = ViewReferenceHelper::generateViewReferenceId($view);
        $reference = $this->getOneReferenceByParameters(['id' => $referenceId], false);
        $transformer = $this->transformer->getViewReferenceTransformer(
            (string) $reference['viewNamespace'], 'array'
        );

        return  $transformer->transform($reference);
    }
public function findReferenceByView ( View $ view ) { $ referenceId = ViewReferenceHelper :: generateViewReferenceId ( $ view ) ; $ reference = $ this -> getOneReferenceByParameters ( [ 'id' => $ referenceId ] , false ) ; $ transformer = $ this -> transformer -> getViewReferenceTransformer ( ( string ) $ reference [ 'viewNamespace' ] , 'array' ) ; return $ transformer -> transform ( $ reference ) ; }
This method return a ViewReference for a View.

@param View $view

@throws \Exception

@return ViewReference
This method return a ViewReference for a View .