Core/Framework/Page/Template.php
final protected function getOpenGraph($data_only = false)
    {
        $og_stack = $this->page->og->getTags();

        if ($data_only) {
            return $og_stack;
        }

        $html = '';

        foreach ($og_stack as $property => $content) {
            $html .= '<meta property="' . $property . '" content="' . $content . '">' . PHP_EOL;
        }

        return $html;
    }
final protected function getOpenGraph($data_only = false)
    {
        $og_stack = $this->page->og->getTags();

        if ($data_only) {
            return $og_stack;
        }

        $html = '';

        foreach ($og_stack as $property => $content) {
            $html .= '<meta property="' . $property . '" content="' . $content . '">' . PHP_EOL;
        }

        return $html;
    }
final protected function getOpenGraph ( $ data_only = false ) { $ og_stack = $ this -> page -> og -> getTags ( ) ; if ( $ data_only ) { return $ og_stack ; } $ html = '' ; foreach ( $ og_stack as $ property => $ content ) { $ html .= '<meta property="' . $ property . '" content="' . $ content . '">' . PHP_EOL ; } return $ html ; }
Creates and return OpenGraph tags

@param boolean $data_only
Set to true if you want to get get only the data without a generated html

@return string|array
Creates and return OpenGraph tags