Path: blob/master/src/applications/owners/config/PhabricatorOwnersConfigOptions.php
12256 views
<?php12final class PhabricatorOwnersConfigOptions3extends PhabricatorApplicationConfigOptions {45public function getName() {6return pht('Owners');7}89public function getDescription() {10return pht('Configure Owners.');11}1213public function getIcon() {14return 'fa-gift';15}1617public function getGroup() {18return 'apps';19}2021public function getOptions() {22$custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType';23$default_fields = array();2425$field_base_class = id(new PhabricatorOwnersPackage())26->getCustomFieldBaseClass();2728$fields_example = array(29'mycompany:lore' => array(30'name' => pht('Package Lore'),31'type' => 'remarkup',32'caption' => pht('Tales of adventure for this package.'),33),34);35$fields_example = id(new PhutilJSON())->encodeFormatted($fields_example);3637return array(38$this->newOption('owners.fields', $custom_field_type, $default_fields)39->setCustomData($field_base_class)40->setDescription(pht('Select and reorder package fields.')),41$this->newOption('owners.custom-field-definitions', 'wild', array())42->setSummary(pht('Custom Owners fields.'))43->setDescription(44pht(45'Map of custom fields for Owners packages. For details on '.46'adding custom fields to Owners, see "Configuring Custom '.47'Fields" in the documentation.'))48->addExample($fields_example, pht('Valid Setting')),49);50}5152}535455