Page MenuHomec4science

DifferentialHostFieldSpecification.php
No OneTemporary

File Metadata

Created
Tue, Nov 12, 03:39

DifferentialHostFieldSpecification.php

<?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 $host;
}
}

Event Timeline