getFieldKey() => true, id(new PhabricatorUserTitleField())->getFieldKey() => true, id(new PhabricatorUserSinceField())->getFieldKey() => true, id(new PhabricatorUserBlurbField())->getFieldKey() => true, ); foreach ($default as $key => $enabled) { $default[$key] = array( 'disabled' => !$enabled, ); } $custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType'; return array( $this->newOption('user.fields', $custom_field_type, $default) ->setCustomData(id(new PhabricatorUser())->getCustomFieldBaseClass()) ->setDescription(pht("Select and reorder user profile fields.")), ); } }