anchorName = $name; return $this; } public function setNavigationMarker($marker) { $this->navigationMarker = $marker; return $this; } public function render() { $marker = null; if ($this->navigationMarker) { $marker = javelin_tag( 'legend', array( 'class' => 'phabricator-anchor-navigation-marker', 'sigil' => 'marker', 'meta' => array( 'anchor' => $this->anchorName, ), ), ''); } $anchor = phutil_tag( 'a', array( 'name' => $this->anchorName, 'id' => $this->anchorName, 'class' => 'phabricator-anchor-view', ), ''); return $this->renderHTMLView(array($marker, $anchor)); } }