Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | public function getTitle() { | ||||
$title = parent::getTitle(); | $title = parent::getTitle(); | ||||
$prefix = null; | $prefix = null; | ||||
if ($use_glyph) { | if ($use_glyph) { | ||||
$prefix = $this->getGlyph(); | $prefix = $this->getGlyph(); | ||||
} else { | } else { | ||||
$application_name = $this->getApplicationName(); | $application_name = $this->getApplicationName(); | ||||
if (strlen($application_name)) { | if (phutil_nonempty_string($application_name)) { | ||||
$prefix = '['.$application_name.']'; | $prefix = '['.$application_name.']'; | ||||
} | } | ||||
} | } | ||||
if (strlen($prefix)) { | if (phutil_nonempty_string($prefix)) { | ||||
$title = $prefix.' '.$title; | $title = $prefix.' '.$title; | ||||
} | } | ||||
return $title; | return $title; | ||||
} | } | ||||
protected function willRenderPage() { | protected function willRenderPage() { | ||||
▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines |
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