Differential D21401 Diff 50944 src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php
| <?php | <?php | ||||
| final class DifferentialRevisionCommandeerTransaction | final class DifferentialRevisionCommandeerTransaction | ||||
| extends DifferentialRevisionActionTransaction { | extends DifferentialRevisionActionTransaction { | ||||
| const TRANSACTIONTYPE = 'differential.revision.commandeer'; | const TRANSACTIONTYPE = 'differential.revision.commandeer'; | ||||
| const ACTIONKEY = 'commandeer'; | const ACTIONKEY = 'commandeer'; | ||||
| protected function getRevisionActionLabel() { | protected function getRevisionActionLabel( | ||||
| DifferentialRevision $revision, | |||||
| PhabricatorUser $viewer) { | |||||
| return pht('Commandeer Revision'); | return pht('Commandeer Revision'); | ||||
| } | } | ||||
| protected function getRevisionActionDescription( | protected function getRevisionActionDescription( | ||||
| DifferentialRevision $revision) { | DifferentialRevision $revision, | ||||
| PhabricatorUser $viewer) { | |||||
| return pht('You will take control of this revision and become its author.'); | return pht('You will take control of this revision and become its author.'); | ||||
| } | } | ||||
| public function getIcon() { | public function getIcon() { | ||||
| return 'fa-flag'; | return 'fa-flag'; | ||||
| } | } | ||||
| public function getColor() { | public function getColor() { | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||