Page MenuHomec4science

PhabricatorProjectAddHeraldAction.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 15:48

PhabricatorProjectAddHeraldAction.php

<?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));
}
}

Event Timeline