Differential D21401 Diff 50944 src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionAbandonTransaction.php
| <?php | <?php | ||||
| final class DifferentialRevisionAbandonTransaction | final class DifferentialRevisionAbandonTransaction | ||||
| extends DifferentialRevisionActionTransaction { | extends DifferentialRevisionActionTransaction { | ||||
| const TRANSACTIONTYPE = 'differential.revision.abandon'; | const TRANSACTIONTYPE = 'differential.revision.abandon'; | ||||
| const ACTIONKEY = 'abandon'; | const ACTIONKEY = 'abandon'; | ||||
| protected function getRevisionActionLabel() { | protected function getRevisionActionLabel( | ||||
| DifferentialRevision $revision, | |||||
| PhabricatorUser $viewer) { | |||||
| return pht('Abandon Revision'); | return pht('Abandon Revision'); | ||||
| } | } | ||||
| protected function getRevisionActionDescription( | protected function getRevisionActionDescription( | ||||
| DifferentialRevision $revision) { | DifferentialRevision $revision, | ||||
| PhabricatorUser $viewer) { | |||||
| return pht('This revision will be abandoned and closed.'); | return pht('This revision will be abandoned and closed.'); | ||||
| } | } | ||||
| public function getIcon() { | public function getIcon() { | ||||
| return 'fa-plane'; | return 'fa-plane'; | ||||
| } | } | ||||
| public function getColor() { | public function getColor() { | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||