Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phid/PhabricatorObjectHandle.php
| Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Lines | final class PhabricatorObjectHandle | ||||
| } | } | ||||
| public function renderHovercardLink($name = null) { | public function renderHovercardLink($name = null) { | ||||
| Javelin::initBehavior('phui-hovercards'); | Javelin::initBehavior('phui-hovercards'); | ||||
| $attributes = array( | $attributes = array( | ||||
| 'sigil' => 'hovercard', | 'sigil' => 'hovercard', | ||||
| 'meta' => array( | 'meta' => array( | ||||
| 'hoverPHID' => $this->getPHID(), | 'hovercardSpec' => array( | ||||
| 'objectPHID' => $this->getPHID(), | |||||
| ), | |||||
| ), | ), | ||||
| ); | ); | ||||
| return $this->renderLinkWithAttributes($name, $attributes); | return $this->renderLinkWithAttributes($name, $attributes); | ||||
| } | } | ||||
| private function renderLinkWithAttributes($name, array $attributes) { | private function renderLinkWithAttributes($name, array $attributes) { | ||||
| if ($name === null) { | if ($name === null) { | ||||
| ▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines | |||||