Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99630355
PhabricatorBarePageUIExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 25, 21:14
Size
522 B
Mime Type
text/x-php
Expires
Mon, Jan 27, 21:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23835666
Attached To
rPH Phabricator
PhabricatorBarePageUIExample.php
View Options
<?php
final
class
PhabricatorBarePageUIExample
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_tag
(
'h1'
,
array
(),
$this
->
getDescription
()));
$response
=
new
AphrontWebpageResponse
();
$response
->
setContent
(
$view
->
render
());
return
$response
;
}
}
Event Timeline
Log In to Comment