public function getMetas()
    {
        $ret = array();

        if (!isset($this->metas['title']) && $this->getParameter('nyroDev_utility.share.title')) {
            $this->setTitle($this->getParameter('nyroDev_utility.share.title'));
        }
        if (!isset($this->metas['description']) && $this->getParameter('nyroDev_utility.share.description')) {
            $this->setDescription($this->getParameter('nyroDev_utility.share.description'));
        }
        if (!isset($this->metas['keywords']) && $this->getParameter('nyroDev_utility.share.keywords')) {
            $this->set('keywords', $this->getParameter('nyroDev_utility.share.keywords'));
        }
        if (!isset($this->metasProp['og:image']) && $this->getParameter('nyroDev_utility.share.image')) {
            $this->setImage($this->getParameter('nyroDev_utility.share.image'));
        }

        if (isset($this->metas['title']) && $this->metas['title']) {
            $ret[] = '<title>'.$this->metas['title'].'</title>';
            unset($this->metas['title']);
        }

        foreach ($this->metas as $k => $v) {
            $ret[] = '<meta name="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }
        foreach ($this->metasProp as $k => $v) {
            $ret[] = '<meta property="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }

        return implode("\n", $ret);
    }
public function getMetas()
    {
        $ret = array();

        if (!isset($this->metas['title']) && $this->getParameter('nyroDev_utility.share.title')) {
            $this->setTitle($this->getParameter('nyroDev_utility.share.title'));
        }
        if (!isset($this->metas['description']) && $this->getParameter('nyroDev_utility.share.description')) {
            $this->setDescription($this->getParameter('nyroDev_utility.share.description'));
        }
        if (!isset($this->metas['keywords']) && $this->getParameter('nyroDev_utility.share.keywords')) {
            $this->set('keywords', $this->getParameter('nyroDev_utility.share.keywords'));
        }
        if (!isset($this->metasProp['og:image']) && $this->getParameter('nyroDev_utility.share.image')) {
            $this->setImage($this->getParameter('nyroDev_utility.share.image'));
        }

        if (isset($this->metas['title']) && $this->metas['title']) {
            $ret[] = '<title>'.$this->metas['title'].'</title>';
            unset($this->metas['title']);
        }

        foreach ($this->metas as $k => $v) {
            $ret[] = '<meta name="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }
        foreach ($this->metasProp as $k => $v) {
            $ret[] = '<meta property="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }

        return implode("\n", $ret);
    }
public function getMetas ( ) { $ ret = array ( ) ; if ( ! isset ( $ this -> metas [ 'title' ] ) && $ this -> getParameter ( 'nyroDev_utility.share.title' ) ) { $ this -> setTitle ( $ this -> getParameter ( 'nyroDev_utility.share.title' ) ) ; } if ( ! isset ( $ this -> metas [ 'description' ] ) && $ this -> getParameter ( 'nyroDev_utility.share.description' ) ) { $ this -> setDescription ( $ this -> getParameter ( 'nyroDev_utility.share.description' ) ) ; } if ( ! isset ( $ this -> metas [ 'keywords' ] ) && $ this -> getParameter ( 'nyroDev_utility.share.keywords' ) ) { $ this -> set ( 'keywords' , $ this -> getParameter ( 'nyroDev_utility.share.keywords' ) ) ; } if ( ! isset ( $ this -> metasProp [ 'og:image' ] ) && $ this -> getParameter ( 'nyroDev_utility.share.image' ) ) { $ this -> setImage ( $ this -> getParameter ( 'nyroDev_utility.share.image' ) ) ; } if ( isset ( $ this -> metas [ 'title' ] ) && $ this -> metas [ 'title' ] ) { $ ret [ ] = '<title>' . $ this -> metas [ 'title' ] . '</title>' ; unset ( $ this -> metas [ 'title' ] ) ; } foreach ( $ this -> metas as $ k => $ v ) { $ ret [ ] = '<meta name="' . $ k . '" content="' . str_replace ( '"' , '&quot;' , $ v ) . '" />' ; } foreach ( $ this -> metasProp as $ k => $ v ) { $ ret [ ] = '<meta property="' . $ k . '" content="' . str_replace ( '"' , '&quot;' , $ v ) . '" />' ; } return implode ( "\n" , $ ret ) ; }
Get all metas set, to be shown in html header.

@return string metas
Get all metas set to be shown in html header .