Page MenuHomec4science

DifferentialHostFieldSpecification.php
No OneTemporary

File Metadata

Created
Wed, Dec 25, 13:57

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