Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / metamta / herald / PhabricatorMailOutboundRoutingSelfEmailHeraldAction.php
blobd39128cf676a96d4ac320b5361fff65857501c86
1 <?php
3 final class PhabricatorMailOutboundRoutingSelfEmailHeraldAction
4 extends PhabricatorMailOutboundRoutingHeraldAction {
6 const ACTIONCONST = 'routing.self.email';
8 public function getHeraldActionName() {
9 return pht('Deliver as email');
12 public function supportsRuleType($rule_type) {
13 return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
16 public function applyEffect($object, HeraldEffect $effect) {
17 $rule = $effect->getRule();
18 $author_phid = $rule->getAuthorPHID();
20 $this->applyRouting(
21 $rule,
22 PhabricatorMailRoutingRule::ROUTE_AS_MAIL,
23 array($author_phid));
26 public function getHeraldActionStandardType() {
27 return self::STANDARD_NONE;
30 public function renderActionDescription($value) {
31 return pht('Deliver as email.');