Path: blob/master/src/applications/differential/customfield/DifferentialHostField.php
12256 views
<?php12final class DifferentialHostField3extends DifferentialCustomField {45public function getFieldKey() {6return 'differential:host';7}89public function getFieldName() {10return pht('Host');11}1213public function getFieldDescription() {14return pht('Shows the local host where the diff came from.');15}1617public function shouldDisableByDefault() {18return true;19}2021public function shouldAppearInPropertyView() {22return true;23}2425public function renderPropertyViewValue(array $handles) {26return null;27}2829public function shouldAppearInDiffPropertyView() {30return true;31}3233public function renderDiffPropertyViewLabel(DifferentialDiff $diff) {34return $this->getFieldName();35}3637public function renderDiffPropertyViewValue(DifferentialDiff $diff) {38$host = $diff->getSourceMachine();39if (!$host) {40return null;41}4243return $host;44}4546}474849