Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / differential / herald / DifferentialReviewersAddBlockingReviewersHeraldAction.php
blobc920253dae4f8c80f73e00489b3fae6cc3eacbe1
1 <?php
3 final class DifferentialReviewersAddBlockingReviewersHeraldAction
4 extends DifferentialReviewersHeraldAction {
6 const ACTIONCONST = 'differential.reviewers.blocking';
8 public function getHeraldActionName() {
9 return pht('Add blocking 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 = true);
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 blocking reviewers: %s.', $this->renderHandleList($value));
32 public function getPHIDsAffectedByAction(HeraldActionRecord $record) {
33 return $record->getTarget();