コード例 #1
0
ファイル: UrlVoter.php プロジェクト: ner0tic/landmarx
 public function matchItem(ItemInterface $item)
 {
     if (null === $this->uri || null === $item->getUri()) {
         return null;
     }
     if ($item->getUri() === $this->uri) {
         return true;
     }
     return null;
 }
コード例 #2
0
ファイル: ListRenderer.php プロジェクト: ner0tic/landmarx
 protected function renderLinkElement(ItemInterface $item, array $options)
 {
     return sprintf('<a href="%s"%s>%s</a>', $this->escape($item->getUri()), $this->renderHtmlAttributes($item->getLinkAttributes()), $this->renderLabel($item, $options));
 }