Path: blob/master/src/applications/maniphest/herald/ManiphestTaskAssignOtherHeraldAction.php
12256 views
<?php12final class ManiphestTaskAssignOtherHeraldAction3extends ManiphestTaskAssignHeraldAction {45const ACTIONCONST = 'maniphest.assign.other';67public function getHeraldActionName() {8return pht('Assign task to');9}1011public function supportsRuleType($rule_type) {12return ($rule_type != HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);13}1415public function applyEffect($object, HeraldEffect $effect) {16return $this->applyAssign($effect->getTarget());17}1819public function getHeraldActionStandardType() {20return self::STANDARD_PHID_LIST;21}2223protected function getDatasource() {24return id(new ManiphestAssigneeDatasource())25->setLimit(1);26}2728public function renderActionDescription($value) {29if (head($value) === PhabricatorPeopleNoOwnerDatasource::FUNCTION_TOKEN) {30return pht('Unassign task.');31} else {32return pht('Assign task to: %s.', $this->renderHandleList($value));33}34}3536}373839