Page MenuHomePhabricator
Paste P1957

AddANoteDifferentialField.php
ActivePublic

Authored by epriestley on Mar 10 2016, 1:48 AM.
Tags
None
Referenced Files
F1166235: AddANoteDifferentialField.php
Mar 10 2016, 1:48 AM
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;
}
}