Differential D25078 Diff 1219 src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
Show All 29 Lines | final class PhabricatorProjectTriggerUnknownRule | ||||
} | } | ||||
protected function newInvalidView() { | protected function newInvalidView() { | ||||
return array( | return array( | ||||
id(new PHUIIconView()) | id(new PHUIIconView()) | ||||
->setIcon('fa-exclamation-triangle yellow'), | ->setIcon('fa-exclamation-triangle yellow'), | ||||
' ', | ' ', | ||||
pht( | pht( | ||||
'This is a trigger rule with a unknown type ("%s").', | 'This is a Trigger Rule with a unknown type ("%s").', | ||||
$this->getRecord()->getType()), | $this->getRecord()->getType()), | ||||
); | ); | ||||
} | } | ||||
protected function getDefaultValue() { | protected function getDefaultValue() { | ||||
return null; | return null; | ||||
} | } | ||||
protected function getPHUIXControlType() { | protected function getPHUIXControlType() { | ||||
return null; | return null; | ||||
} | } | ||||
protected function getPHUIXControlSpecification() { | protected function getPHUIXControlSpecification() { | ||||
return null; | return null; | ||||
} | } | ||||
public function getRuleViewLabel() { | public function getRuleViewLabel() { | ||||
return pht('Unknown Rule'); | return pht('Unknown Rule'); | ||||
} | } | ||||
public function getRuleViewDescription($value) { | public function getRuleViewDescription($value) { | ||||
return pht( | return pht( | ||||
'This is an unknown rule of type "%s". An administrator may have '. | 'This is an unknown Rule of type "%s". An Administrator may have '. | ||||
'edited or removed an extension which implements this rule type.', | 'edited or removed an extension which implements this Rule type.', | ||||
$this->getRecord()->getType()); | $this->getRecord()->getType()); | ||||
} | } | ||||
public function getRuleViewIcon($value) { | public function getRuleViewIcon($value) { | ||||
return id(new PHUIIconView()) | return id(new PHUIIconView()) | ||||
->setIcon('fa-question-circle', 'yellow'); | ->setIcon('fa-question-circle', 'yellow'); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0