| 1 | <?php |
||
| 9 | class OpenGraphRenderer implements OpenGraphRendererInterface |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | protected static $tagTemplate = '<meta property="#property#" content="#content#" />'; |
||
| 13 | |||
| 14 | |||
| 15 | /** |
||
| 16 | * Create renderer instance |
||
| 17 | * |
||
| 18 | * @return static |
||
| 19 | */ |
||
| 20 | public static function create() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function renderNamespaceAttributes(OpenGraphInterface $graph, $withTag = true) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function render(OpenGraphInterface $graph, $tagSeparator = '') |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | public function renderTag(OpenGraphTagInterface $tag) |
||
| 80 | } |
||
| 81 |