Differential D21668 Diff 51567 src/applications/dashboard/editor/PhabricatorDashboardPanelEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/editor/PhabricatorDashboardPanelEditEngine.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | protected function newEditableObject() { | ||||
if ($this->panelType) { | if ($this->panelType) { | ||||
$panel->setPanelType($this->panelType); | $panel->setPanelType($this->panelType); | ||||
} | } | ||||
return $panel; | return $panel; | ||||
} | } | ||||
protected function newEditableObjectForDocumentation() { | |||||
$panel = parent::newEditableObjectForDocumentation(); | |||||
$text_type = id(new PhabricatorDashboardTextPanelType()) | |||||
->getPanelTypeKey(); | |||||
$panel->setPanelType($text_type); | |||||
return $panel; | |||||
} | |||||
protected function newObjectQuery() { | protected function newObjectQuery() { | ||||
return new PhabricatorDashboardPanelQuery(); | return new PhabricatorDashboardPanelQuery(); | ||||
} | } | ||||
protected function getObjectCreateTitleText($object) { | protected function getObjectCreateTitleText($object) { | ||||
return pht('Create Dashboard Panel'); | return pht('Create Dashboard Panel'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |