Page MenuHomePhorge

ManiphestTaskAssignOtherHeraldAction.php
No OneTemporary

Size
889 B
Referenced Files
None
Subscribers
None

ManiphestTaskAssignOtherHeraldAction.php

<?php
final class ManiphestTaskAssignOtherHeraldAction
extends ManiphestTaskAssignHeraldAction {
const ACTIONCONST = 'maniphest.assign.other';
public function getHeraldActionName() {
return pht('Assign task to');
}
public function supportsRuleType($rule_type) {
return ($rule_type != HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
}
public function applyEffect($object, HeraldEffect $effect) {
return $this->applyAssign($effect->getTarget());
}
public function getHeraldActionStandardType() {
return self::STANDARD_PHID_LIST;
}
protected function getDatasource() {
// TODO: Eventually, it would be nice to get "limit = 1" exported from here
// up to the UI.
return new PhabricatorPeopleDatasource();
}
public function renderActionDescription($value) {
return pht('Assign task to: %s.', $this->renderHandleList($value));
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Jun 30, 2:45 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
273799
Default Alt Text
ManiphestTaskAssignOtherHeraldAction.php (889 B)

Event Timeline