Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / metamta / herald / PhabricatorMailOutboundRoutingSelfNotificationHeraldAction.php
blob24838b7a79edb022d186a0b0e7f12d5ad7315d3a
1 <?php
3 final class PhabricatorMailOutboundRoutingSelfNotificationHeraldAction
4 extends PhabricatorMailOutboundRoutingHeraldAction {
6 const ACTIONCONST = 'routing.self.notification';
8 public function getHeraldActionName() {
9 return pht('Deliver as notification');
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_NOTIFICATION,
23 array($author_phid));
26 public function getHeraldActionStandardType() {
27 return self::STANDARD_NONE;
30 public function renderActionDescription($value) {
31 return pht('Deliver as notification.');