3 final class PhabricatorAnchorView
extends AphrontView
{
6 private $navigationMarker;
8 public function setAnchorName($name) {
9 $this->anchorName
= $name;
13 public function setNavigationMarker($marker) {
14 $this->navigationMarker
= $marker;
18 public function render() {
20 if ($this->navigationMarker
) {
21 $marker = javelin_tag(
24 'class' => 'phabricator-anchor-navigation-marker',
27 'anchor' => $this->anchorName
,
36 'name' => $this->anchorName
,
37 'id' => $this->anchorName
,
38 'class' => 'phabricator-anchor-view',
42 return array($marker, $anchor);