Differential D13705 Diff 33280 src/applications/project/herald/PhabricatorProjectAddHeraldAction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/herald/PhabricatorProjectAddHeraldAction.php
- This file was added.
<?php | |||||
final class PhabricatorProjectAddHeraldAction | |||||
extends PhabricatorProjectHeraldAction { | |||||
const ACTIONCONST = 'projects.add'; | |||||
public function getHeraldActionName() { | |||||
return pht('Add projects'); | |||||
} | |||||
public function applyEffect($object, HeraldEffect $effect) { | |||||
return $this->applyProjects($effect->getTarget(), $is_add = true); | |||||
} | |||||
public function getHeraldActionStandardType() { | |||||
return self::STANDARD_PHID_LIST; | |||||
} | |||||
protected function getDatasource() { | |||||
return new PhabricatorProjectDatasource(); | |||||
} | |||||
public function renderActionDescription($value) { | |||||
return pht('Add projects: %s.', $this->renderHandleList($value)); | |||||
} | |||||
} |