private function buildDocument(PhabricatorMarkupEngine $engine, LegalpadDocumentBody $body) { $view = new PHUIPropertyListView(); $view->addClass('legalpad'); $view->addSectionHeader(pht('Document')); $view->addTextContent($engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT)); return $view; }