Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/maniphest/xaction/ManiphestTaskEdgeTransaction.php
12256 views
1
<?php
2
3
final class ManiphestTaskEdgeTransaction
4
extends ManiphestTaskTransactionType {
5
6
const TRANSACTIONTYPE = 'edge';
7
8
public function generateOldValue($object) {
9
return null;
10
}
11
12
public function shouldHide() {
13
$commit_phid = $this->getMetadataValue('commitPHID');
14
$edge_type = $this->getMetadataValue('edge:type');
15
16
if ($edge_type == ManiphestTaskHasCommitEdgeType::EDGECONST) {
17
if ($commit_phid) {
18
return true;
19
}
20
}
21
}
22
23
public function getActionName() {
24
return pht('Attached');
25
}
26
27
public function getIcon() {
28
return 'fa-thumb-tack';
29
}
30
31
}
32
33