1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/applications/maniphest/view/ManiphestView.php

20 lines
506 B
PHP
Raw Normal View History

<?php
/**
* @group maniphest
*/
abstract class ManiphestView extends AphrontView {
public static function renderTagForTask(ManiphestTask $task) {
$status = $task->getStatus();
$status_name = ManiphestTaskStatus::getTaskStatusFullName($status);
$status_color = ManiphestTaskStatus::getTaskStatusTagColor($status);
return id(new PhabricatorTagView())
->setType(PhabricatorTagView::TYPE_STATE)
->setName($status_name)
->setBackgroundColor($status_color);
}
}