Differential D17068 Diff 41084 src/applications/differential/customfield/DifferentialCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialCustomField.php
| Show All 14 Lines | abstract class DifferentialCustomField | ||||
| * bound together by it. Until everything is modernized, retaining the old | * bound together by it. Until everything is modernized, retaining the old | ||||
| * field keys is the only reasonable way to update things one piece | * field keys is the only reasonable way to update things one piece | ||||
| * at a time. | * at a time. | ||||
| */ | */ | ||||
| public function getFieldKeyForConduit() { | public function getFieldKeyForConduit() { | ||||
| return $this->getFieldKey(); | return $this->getFieldKey(); | ||||
| } | } | ||||
| // TODO: As above. | |||||
| public function getModernFieldKey() { | |||||
| return $this->getFieldKeyForConduit(); | |||||
| } | |||||
| public function shouldEnableForRole($role) { | public function shouldEnableForRole($role) { | ||||
| switch ($role) { | switch ($role) { | ||||
| case self::ROLE_COMMITMESSAGE: | case self::ROLE_COMMITMESSAGE: | ||||
| return $this->shouldAppearInCommitMessage(); | return $this->shouldAppearInCommitMessage(); | ||||
| case self::ROLE_COMMITMESSAGEEDIT: | case self::ROLE_COMMITMESSAGEEDIT: | ||||
| return $this->shouldAppearInCommitMessage() && | return $this->shouldAppearInCommitMessage() && | ||||
| $this->shouldAllowEditInCommitMessage(); | $this->shouldAllowEditInCommitMessage(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines | |||||