Differential D20185 Diff 48213 src/applications/differential/render/DifferentialChangesetRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetRenderer.php
Show First 20 Lines • Show All 400 Lines • ▼ Show 20 Lines | abstract class DifferentialChangesetRenderer extends Phobject { | ||||
* may force certain rendering modes when the link is clicked: | * may force certain rendering modes when the link is clicked: | ||||
* | * | ||||
* - `"default"`: Render the diff normally, as though it was not | * - `"default"`: Render the diff normally, as though it was not | ||||
* shielded. This is the default and appropriate if the underlying | * shielded. This is the default and appropriate if the underlying | ||||
* diff is a normal change, but was hidden for reasons of not being | * diff is a normal change, but was hidden for reasons of not being | ||||
* important (e.g., generated code). | * important (e.g., generated code). | ||||
* - `"text"`: Force the text to be shown. This is probably only relevant | * - `"text"`: Force the text to be shown. This is probably only relevant | ||||
* when a file is not changed. | * when a file is not changed. | ||||
* - `"whitespace"`: Force the text to be shown, and the diff to be | |||||
* rendered with all whitespace shown. This is probably only relevant | |||||
* when a file is changed only by altering whitespace. | |||||
* - `"none"`: Don't show the link (e.g., text not available). | * - `"none"`: Don't show the link (e.g., text not available). | ||||
* | * | ||||
* @param string Message explaining why the diff is hidden. | * @param string Message explaining why the diff is hidden. | ||||
* @param string|null Force mode, see above. | * @param string|null Force mode, see above. | ||||
* @return string Shield markup. | * @return string Shield markup. | ||||
*/ | */ | ||||
abstract public function renderShield($message, $force = 'default'); | abstract public function renderShield($message, $force = 'default'); | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |