Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/interface/PhabricatorInlineComment.php
Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | public function getContentForEdit(PhabricatorUser $viewer) { | ||||
$draft_text = $versioned_draft->getProperty('inline.text'); | $draft_text = $versioned_draft->getProperty('inline.text'); | ||||
if ($draft_text === null) { | if ($draft_text === null) { | ||||
return $content; | return $content; | ||||
} | } | ||||
return $draft_text; | return $draft_text; | ||||
} | } | ||||
public function getContentState() { | |||||
return array( | |||||
'text' => $this->getContent(), | |||||
); | |||||
} | |||||
/* -( PhabricatorMarkupInterface Implementation )-------------------------- */ | /* -( PhabricatorMarkupInterface Implementation )-------------------------- */ | ||||
public function getMarkupFieldKey($field) { | public function getMarkupFieldKey($field) { | ||||
$content = $this->getMarkupText($field); | $content = $this->getMarkupText($field); | ||||
return PhabricatorMarkupEngine::digestRemarkupContent($this, $content); | return PhabricatorMarkupEngine::digestRemarkupContent($this, $content); | ||||
} | } | ||||
Show All 18 Lines |