Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/PHUIFormLayoutView.php
| Show All 27 Lines | return $this->appendChild( | ||||
| 'class' => 'aphront-form-instructions', | 'class' => 'aphront-form-instructions', | ||||
| ), | ), | ||||
| $text)); | $text)); | ||||
| } | } | ||||
| public function appendRemarkupInstructions($remarkup) { | public function appendRemarkupInstructions($remarkup) { | ||||
| if ($this->getUser() === null) { | if ($this->getUser() === null) { | ||||
| throw new Exception( | throw new Exception( | ||||
| 'Call `setUser` before appending Remarkup to PHUIFormLayoutView.'); | pht( | ||||
| 'Call %s before appending Remarkup to %s.', | |||||
| 'setUser()', | |||||
| __CLASS__)); | |||||
| } | } | ||||
| return $this->appendInstructions( | return $this->appendInstructions( | ||||
| PhabricatorMarkupEngine::renderOneObject( | PhabricatorMarkupEngine::renderOneObject( | ||||
| id(new PhabricatorMarkupOneOff())->setContent($remarkup), | id(new PhabricatorMarkupOneOff())->setContent($remarkup), | ||||
| 'default', | 'default', | ||||
| $this->getUser())); | $this->getUser())); | ||||
| } | } | ||||
| Show All 18 Lines | |||||