public function addOpenGraphMeta($data = [])
    {
        foreach ($data as $property => $content) {
            // Create the open graph meta
            $og = $this->getHTMLFactory()->buildMeta($name = '', $content, $httpEquiv = '', $charset = '');
            $og->attr('property', 'og:' . $property);

            // Append meta to head
            $this->appendToHead($og);
        }

        return $this;
    }
public function addOpenGraphMeta($data = [])
    {
        foreach ($data as $property => $content) {
            // Create the open graph meta
            $og = $this->getHTMLFactory()->buildMeta($name = '', $content, $httpEquiv = '', $charset = '');
            $og->attr('property', 'og:' . $property);

            // Append meta to head
            $this->appendToHead($og);
        }

        return $this;
    }
public function addOpenGraphMeta ( $ data = [ ] ) { foreach ( $ data as $ property => $ content ) { // Create the open graph meta $ og = $ this -> getHTMLFactory ( ) -> buildMeta ( $ name = '' , $ content , $ httpEquiv = '' , $ charset = '' ) ; $ og -> attr ( 'property' , 'og:' . $ property ) ; // Append meta to head $ this -> appendToHead ( $ og ) ; } return $ this ; }
Add open graph meta properties to the page.

@param array $data An array of property => content open graph meta.
The og: at the property name is inserted automatically.

@return $this
@throws Exception
@throws InvalidArgumentException
Add open graph meta properties to the page .