NavigationRenderer: Add id "navigation" to the navigation's heading

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-04 09:26:28 +02:00
parent c60839d798
commit 4e948b46bf

View File

@ -245,7 +245,7 @@ class NavigationRenderer implements RecursiveIterator, NavigationRendererInterfa
$this->getCssClass() !== null ? ' class="' . $this->getCssClass() . '"' : '' $this->getCssClass() !== null ? ' class="' . $this->getCssClass() . '"' : ''
); );
$content[] = sprintf( $content[] = sprintf(
'<h%1$d class="sr-only" tabindex="-1">%2$s</h%1$d>', '<h%1$d id="navigation" class="sr-only" tabindex="-1">%2$s</h%1$d>',
static::HEADING_RANK, static::HEADING_RANK,
$this->view()->escape($this->getHeading()) $this->view()->escape($this->getHeading())
); );