1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-16 03:42:41 +01:00
phorge-phorge/src/applications/differential/field/specification/DifferentialHostFieldSpecification.php

24 lines
511 B
PHP
Raw Normal View History

<?php
final class DifferentialHostFieldSpecification
extends DifferentialFieldSpecification {
public function shouldAppearOnRevisionView() {
return PhabricatorEnv::getEnvConfig('differential.show-host-field');
}
public function renderLabelForRevisionView() {
return 'Host:';
}
public function renderValueForRevisionView() {
$diff = $this->getManualDiff();
$host = $diff->getSourceMachine();
if (!$host) {
return null;
}
return phutil_escape_html($host);
}
}