Bundle/CoreBundle/Entity/View.php
public function getReference($locale = null)
    {
        $locale = $locale ?: $this->getCurrentLocale();
        if (is_array($this->references) && isset($this->references[$locale])) {
            return $this->references[$locale];
        }
    }
public function getReference($locale = null)
    {
        $locale = $locale ?: $this->getCurrentLocale();
        if (is_array($this->references) && isset($this->references[$locale])) {
            return $this->references[$locale];
        }
    }
public function getReference ( $ locale = null ) { $ locale = $ locale ? : $ this -> getCurrentLocale ( ) ; if ( is_array ( $ this -> references ) && isset ( $ this -> references [ $ locale ] ) ) { return $ this -> references [ $ locale ] ; } }
Get reference according to the current locale.

@param string $locale

@return null|ViewReference
Get reference according to the current locale .