public function get($type)
    {
        $ret = null;
        if ('image' == $type) {
            if (isset($this->metasProp['og:image'])) {
                $ret = $this->metasProp['og:image'];
            } elseif ($this->getParameter('nyroDev_utility.share.image')) {
                $ret = $this->getParameter('nyroDev_utility.share.image');
            }
        } else {
            if (isset($this->metas[$type])) {
                $ret = $this->metas[$type];
            } elseif ($this->getParameter('nyroDev_utility.share.'.$type)) {
                $ret = $this->getParameter('nyroDev_utility.share.'.$type);
            }
        }

        return preg_replace('/\s\s+/', ' ', $this->trans($ret));
    }
public function get($type)
    {
        $ret = null;
        if ('image' == $type) {
            if (isset($this->metasProp['og:image'])) {
                $ret = $this->metasProp['og:image'];
            } elseif ($this->getParameter('nyroDev_utility.share.image')) {
                $ret = $this->getParameter('nyroDev_utility.share.image');
            }
        } else {
            if (isset($this->metas[$type])) {
                $ret = $this->metas[$type];
            } elseif ($this->getParameter('nyroDev_utility.share.'.$type)) {
                $ret = $this->getParameter('nyroDev_utility.share.'.$type);
            }
        }

        return preg_replace('/\s\s+/', ' ', $this->trans($ret));
    }
public function get ( $ type ) { $ ret = null ; if ( 'image' == $ type ) { if ( isset ( $ this -> metasProp [ 'og:image' ] ) ) { $ ret = $ this -> metasProp [ 'og:image' ] ; } elseif ( $ this -> getParameter ( 'nyroDev_utility.share.image' ) ) { $ ret = $ this -> getParameter ( 'nyroDev_utility.share.image' ) ; } } else { if ( isset ( $ this -> metas [ $ type ] ) ) { $ ret = $ this -> metas [ $ type ] ; } elseif ( $ this -> getParameter ( 'nyroDev_utility.share.' . $ type ) ) { $ ret = $ this -> getParameter ( 'nyroDev_utility.share.' . $ type ) ; } } return preg_replace ( '/\s\s+/' , ' ' , $ this -> trans ( $ ret ) ) ; }
Get a share meta value.

@param string $type Meta name

@return string Meta value
Get a share meta value .