Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/config/PhabricatorOwnersConfigOptions.php
Show All 30 Lines | $fields_example = array( | ||||
'name' => pht('Package Lore'), | 'name' => pht('Package Lore'), | ||||
'type' => 'remarkup', | 'type' => 'remarkup', | ||||
'caption' => pht('Tales of adventure for this package.'), | 'caption' => pht('Tales of adventure for this package.'), | ||||
), | ), | ||||
); | ); | ||||
$fields_example = id(new PhutilJSON())->encodeFormatted($fields_example); | $fields_example = id(new PhutilJSON())->encodeFormatted($fields_example); | ||||
return array( | return array( | ||||
$this->newOption('metamta.package.subject-prefix', 'string', '[Package]') | |||||
->setDescription(pht('Subject prefix for Owners email.')), | |||||
$this->newOption('owners.fields', $custom_field_type, $default_fields) | $this->newOption('owners.fields', $custom_field_type, $default_fields) | ||||
->setCustomData($field_base_class) | ->setCustomData($field_base_class) | ||||
->setDescription(pht('Select and reorder package fields.')), | ->setDescription(pht('Select and reorder package fields.')), | ||||
$this->newOption('owners.custom-field-definitions', 'wild', array()) | $this->newOption('owners.custom-field-definitions', 'wild', array()) | ||||
->setSummary(pht('Custom Owners fields.')) | ->setSummary(pht('Custom Owners fields.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'Map of custom fields for Owners packages. For details on '. | 'Map of custom fields for Owners packages. For details on '. | ||||
'adding custom fields to Owners, see "Configuring Custom '. | 'adding custom fields to Owners, see "Configuring Custom '. | ||||
'Fields" in the documentation.')) | 'Fields" in the documentation.')) | ||||
->addExample($fields_example, pht('Valid Setting')), | ->addExample($fields_example, pht('Valid Setting')), | ||||
); | ); | ||||
} | } | ||||
} | } |