Page MenuHomec4science

DifferentialHostFieldSpecification.php
No OneTemporary

File Metadata

Created
Sat, Nov 23, 13:41

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