Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1957
AddANoteDifferentialField.php
Active
Public
Actions
Authored by
epriestley
on Mar 10 2016, 1:48 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F1166235: AddANoteDifferentialField.php
Mar 10 2016, 1:48 AM
2016-03-10 01:48:36 (UTC+0)
Subscribers
None
<?php
final
class
AddANoteDifferentialField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'mycompany:customnote'
;
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
null
;
}
public
function
getWarningsForDetailView
()
{
$warnings
=
array
();
$warnings
[]
=
pht
(
'If you accept a change that has a bug, you will be fired '
.
'immediately! Forever! So be careful!'
);
return
$warnings
;
}
}
Event Timeline
epriestley
created this paste.
Mar 10 2016, 1:48 AM
2016-03-10 01:48:36 (UTC+0)
Log In to Comment