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();
22 PhabricatorMailRoutingRule
::ROUTE_AS_NOTIFICATION
,
26 public function getHeraldActionStandardType() {
27 return self
::STANDARD_NONE
;
30 public function renderActionDescription($value) {
31 return pht('Deliver as notification.');