Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / herald / action / HeraldDoNothingAction.php
blob21141bf47f68925a6ea9e32f6b51e69c4bcd672d
1 <?php
3 final class HeraldDoNothingAction extends HeraldAction {
5 const ACTIONCONST = 'nothing';
6 const DO_NOTHING = 'do.nothing';
8 public function getHeraldActionName() {
9 return pht('Do nothing');
12 public function getActionGroupKey() {
13 return HeraldUtilityActionGroup::ACTIONGROUPKEY;
16 public function supportsObject($object) {
17 return true;
20 public function supportsRuleType($rule_type) {
21 return true;
24 public function applyEffect($object, HeraldEffect $effect) {
25 $this->logEffect(self::DO_NOTHING);
28 public function getHeraldActionStandardType() {
29 return self::STANDARD_NONE;
32 protected function getActionEffectMap() {
33 return array(
34 self::DO_NOTHING => array(
35 'icon' => 'fa-check',
36 'color' => 'grey',
37 'name' => pht('Did Nothing'),
42 public function renderActionDescription($value) {
43 return pht('Do nothing.');
46 protected function renderActionEffectDescription($type, $data) {
47 return pht('Did nothing.');