Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | protected function formatBody(Url $url) |
||
16 | { |
||
17 | $buffer = parent::formatBody($url); |
||
18 | |||
19 | if ($url instanceof RichUrl) { |
||
20 | foreach ($url->getAlternateUrls() as $locale => $link) { |
||
21 | $buffer .= "\t".'<xhtml:link rel="alternate" hreflang="'.$this->escape($locale).'" href="'.$this->escape($link).'" />'."\n"; |
||
22 | } |
||
23 | } |
||
24 | |||
25 | return $buffer; |
||
26 | } |
||
27 | } |