Differential D16226 Diff 39032 src/applications/dashboard/customfield/PhabricatorDashboardPanelCoreCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/customfield/PhabricatorDashboardPanelCoreCustomField.php
| <?php | <?php | ||||
| final class PhabricatorDashboardPanelCoreCustomField | final class PhabricatorDashboardPanelCoreCustomField | ||||
| extends PhabricatorDashboardPanelCustomField | extends PhabricatorDashboardPanelCustomField | ||||
| implements PhabricatorStandardCustomFieldInterface { | implements PhabricatorStandardCustomFieldInterface { | ||||
| public function getStandardCustomFieldNamespace() { | public function getStandardCustomFieldNamespace() { | ||||
| return 'dashboard:core'; | return 'dashboard:core'; | ||||
| } | } | ||||
| public function createFields($object) { | public function createFields($object) { | ||||
| if (!$object->getPanelType()) { | |||||
| return array(); | |||||
| } | |||||
| $impl = $object->requireImplementation(); | $impl = $object->requireImplementation(); | ||||
| $specs = $impl->getFieldSpecifications(); | $specs = $impl->getFieldSpecifications(); | ||||
| return PhabricatorStandardCustomField::buildStandardFields($this, $specs); | return PhabricatorStandardCustomField::buildStandardFields($this, $specs); | ||||
| } | } | ||||
| public function shouldUseStorage() { | public function shouldUseStorage() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| Show All 24 Lines | |||||