Differential D15352 Diff 37023 src/applications/harbormaster/customfield/HarbormasterBuildStepCoreCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/customfield/HarbormasterBuildStepCoreCustomField.php
<?php | <?php | ||||
final class HarbormasterBuildStepCoreCustomField | final class HarbormasterBuildStepCoreCustomField | ||||
extends HarbormasterBuildStepCustomField | extends HarbormasterBuildStepCustomField | ||||
implements PhabricatorStandardCustomFieldInterface { | implements PhabricatorStandardCustomFieldInterface { | ||||
public function getStandardCustomFieldNamespace() { | public function getStandardCustomFieldNamespace() { | ||||
return 'harbormaster:core'; | return 'harbormaster:core'; | ||||
} | } | ||||
public function createFields($object) { | public function createFields($object) { | ||||
try { | |||||
$impl = $object->getStepImplementation(); | $impl = $object->getStepImplementation(); | ||||
} catch (Exception $ex) { | |||||
return array(); | |||||
} | |||||
$specs = $impl->getFieldSpecifications(); | $specs = $impl->getFieldSpecifications(); | ||||
if ($impl->supportsWaitForMessage()) { | if ($impl->supportsWaitForMessage()) { | ||||
$specs['builtin.next-steps-header'] = array( | $specs['builtin.next-steps-header'] = array( | ||||
'type' => 'header', | 'type' => 'header', | ||||
'name' => pht('Next Steps'), | 'name' => pht('Next Steps'), | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |