Page MenuHomestyx hydra

ManiphestTaskDescriptionPreviewController.php
No OneTemporary

ManiphestTaskDescriptionPreviewController.php

<?php
/**
* @group maniphest
*/
final class ManiphestTaskDescriptionPreviewController
extends ManiphestController {
public function processRequest() {
$request = $this->getRequest();
$description = $request->getStr('description');
$task = new ManiphestTask();
$task->setDescription($description);
$output = PhabricatorMarkupEngine::renderOneObject(
$task,
ManiphestTask::MARKUP_FIELD_DESCRIPTION,
$request->getUser());
$content =
'<div class="phabricator-remarkup">'.
$output.
'</div>';
return id(new AphrontAjaxResponse())
->setContent($content);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 30, 7:12 PM (3 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
426447
Default Alt Text
ManiphestTaskDescriptionPreviewController.php (638 B)

Event Timeline