Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/interface/PhabricatorInlineComment.php
Show First 20 Lines • Show All 358 Lines • ▼ Show 20 Lines | public function setContentState(PhabricatorInlineCommentContentState $state) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getInlineContext() { | public function getInlineContext() { | ||||
return $this->getStorageObject()->getInlineContext(); | return $this->getStorageObject()->getInlineContext(); | ||||
} | } | ||||
public function getDefaultSuggestionText() { | |||||
$context = $this->getInlineContext(); | |||||
if (!$context) { | |||||
return null; | |||||
} | |||||
$default = $context->getBodyLines(); | |||||
$default = implode('', $default); | |||||
return $default; | |||||
} | |||||
/* -( 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 |