Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / differential / herald / DifferentialReviewersAddReviewersHeraldAction.php
blob60e64c750d95e2fd3c21878c012e952d2fa96437
1 <?php
3 final class DifferentialReviewersAddReviewersHeraldAction
4 extends DifferentialReviewersHeraldAction {
6 const ACTIONCONST = 'differential.reviewers.add';
8 public function getHeraldActionName() {
9 return pht('Add reviewers');
12 public function supportsRuleType($rule_type) {
13 return ($rule_type != HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
16 public function applyEffect($object, HeraldEffect $effect) {
17 return $this->applyReviewers($effect->getTarget(), $is_blocking = false);
20 public function getHeraldActionStandardType() {
21 return self::STANDARD_PHID_LIST;
24 protected function getDatasource() {
25 return new DiffusionAuditorDatasource();
28 public function renderActionDescription($value) {
29 return pht('Add reviewers: %s.', $this->renderHandleList($value));
32 public function getPHIDsAffectedByAction(HeraldActionRecord $record) {
33 return $record->getTarget();