Changeset View
Changeset View
Standalone View
Standalone View
src/config/option/ArcanistAliasesConfigOption.php
| Show All 16 Lines | foreach ($value as $key => $spec) { | ||||
| $aliases[] = ArcanistAlias::newFromConfig($key, $spec); | $aliases[] = ArcanistAlias::newFromConfig($key, $spec); | ||||
| } | } | ||||
| return $aliases; | return $aliases; | ||||
| } | } | ||||
| protected function didReadStorageValueList(array $list) { | protected function didReadStorageValueList(array $list) { | ||||
| assert_instances_of($list, 'ArcanistConfigurationSourceValue'); | assert_instances_of($list, 'ArcanistConfigurationSourceValue'); | ||||
| return mpull($list, 'getValue'); | |||||
| $results = array(); | |||||
| foreach ($list as $spec) { | |||||
| $source = $spec->getConfigurationSource(); | |||||
| $value = $spec->getValue(); | |||||
| $value->setConfigurationSource($source); | |||||
| $results[] = $value; | |||||
| } | |||||
| return $results; | |||||
| } | } | ||||
| public function getDisplayValueFromValue($value) { | public function getDisplayValueFromValue($value) { | ||||
| return pht('Use the "alias" workflow to review aliases.'); | return pht('Use the "alias" workflow to review aliases.'); | ||||
| } | } | ||||
| public function getStorageValueFromValue($value) { | public function getStorageValueFromValue($value) { | ||||
| return mpull($value, 'getStorageDictionary'); | return mpull($value, 'getStorageDictionary'); | ||||
| } | } | ||||
| } | } | ||||