Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/field/PhabricatorCustomField.php
Show First 20 Lines • Show All 1,673 Lines • ▼ Show 20 Lines | foreach ($fields as $field) { | ||||
} | } | ||||
$map[$modern_key] = $field; | $map[$modern_key] = $field; | ||||
} | } | ||||
foreach ($map as $field_key => $field) { | foreach ($map as $field_key => $field) { | ||||
// For now, only support overriding standard custom fields. In the | // For now, only support overriding standard custom fields. In the | ||||
// future there's no technical or product reason we couldn't let you | // future there's no technical or product reason we couldn't let you | ||||
// override (some properites of) other fields like "Title", but they | // override (some properties of) other fields like "Title", but they | ||||
// don't usually support appropriate "setX()" methods today. | // don't usually support appropriate "setX()" methods today. | ||||
if (!($field instanceof PhabricatorStandardCustomField)) { | if (!($field instanceof PhabricatorStandardCustomField)) { | ||||
// For fields that are proxies on top of StandardCustomField, which | // For fields that are proxies on top of StandardCustomField, which | ||||
// is how most application custom fields work today, we can reconfigure | // is how most application custom fields work today, we can reconfigure | ||||
// the proxied field instead. | // the proxied field instead. | ||||
$field = $field->getProxy(); | $field = $field->getProxy(); | ||||
if (!$field || !($field instanceof PhabricatorStandardCustomField)) { | if (!$field || !($field instanceof PhabricatorStandardCustomField)) { | ||||
continue; | continue; | ||||
Show All 23 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0