Page MenuHomec4science

DifferentialPathFieldSpecification.php
No OneTemporary

File Metadata

Created
Tue, Nov 12, 03:19

DifferentialPathFieldSpecification.php

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

Event Timeline