1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-23 10:48:47 +02:00
phorge-phorge/src/applications/uiexample/examples/PhabricatorBarePageExample.php

26 lines
547 B
PHP
Raw Normal View History

<?php
final class PhabricatorBarePageExample extends PhabricatorUIExample {
public function getName() {
return 'Bare Page';
}
public function getDescription() {
return 'This is a bare page.';
}
public function renderExample() {
$view = new PhabricatorBarePageView();
$view->appendChild(
phutil_render_tag(
'h1',
array(),
phutil_escape_html($this->getDescription())));
$response = new AphrontWebpageResponse();
$response->setContent($view->render());
return $response;
}
}