Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboardPanel.php
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | final class PhabricatorDashboardPanel | ||||
} | } | ||||
public function requireImplementation() { | public function requireImplementation() { | ||||
$impl = $this->getImplementation(); | $impl = $this->getImplementation(); | ||||
if (!$impl) { | if (!$impl) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Attempting to use a panel in a way that requires an '. | 'Attempting to use a panel in a way that requires an '. | ||||
'implementation, but the panel implementation ("%s") is unknown to '. | 'implementation, but the panel implementation ("%s") is unknown.', | ||||
'Phabricator.', | |||||
$this->getPanelType())); | $this->getPanelType())); | ||||
} | } | ||||
return $impl; | return $impl; | ||||
} | } | ||||
public function getEditEngineFields() { | public function getEditEngineFields() { | ||||
return $this->requireImplementation()->getEditEngineFields($this); | return $this->requireImplementation()->getEditEngineFields($this); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 77 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