protected function setMetaEntity(array $data)
    {
        if (!empty($data['meta_title'])) {
            $this->setTitle($data['meta_title'], false);
        }

        if (!empty($data['meta_description'])) {
            $this->setMeta(array('name' => 'description', 'content' => $data['meta_description']));
        }

        $this->setMeta(array('rel' => 'canonical', 'href' => $this->path));
    }
protected function setMetaEntity(array $data)
    {
        if (!empty($data['meta_title'])) {
            $this->setTitle($data['meta_title'], false);
        }

        if (!empty($data['meta_description'])) {
            $this->setMeta(array('name' => 'description', 'content' => $data['meta_description']));
        }

        $this->setMeta(array('rel' => 'canonical', 'href' => $this->path));
    }
protected function setMetaEntity ( array $ data ) { if ( ! empty ( $ data [ 'meta_title' ] ) ) { $ this -> setTitle ( $ data [ 'meta_title' ] , false ) ; } if ( ! empty ( $ data [ 'meta_description' ] ) ) { $ this -> setMeta ( array ( 'name' => 'description' , 'content' => $ data [ 'meta_description' ] ) ) ; } $ this -> setMeta ( array ( 'rel' => 'canonical' , 'href' => $ this -> path ) ) ; }
Set meta tags on entity page
@param array $data
Set meta tags on entity page