Source of file DashboardQuickLinksPanel.php
Size: 1,042 Bytes - Last Modified: 2021-12-23T10:29:11+00:00
/var/www/docs.ssmods.com/process/src/src/panels/DashboardQuickLinksPanel.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | <?php namespace UncleCheese\Dashboard; /** * Defines the "Quick Links" dashboard panel type * * @package Dashboard * @author Uncle Cheese <unclecheese@leftandmain.com> */ class DashboardQuickLinksPanel extends DashboardPanel { private static $table_name = 'DashboardQuickLinksPanel'; private static $has_many = [ 'Links' => DashboardQuickLink::class ]; private static $defaults = [ 'PanelSize' => "small" ]; private static $icon = "unclecheese/dashboard:images/quick-links.png"; private static $configure_on_create = true; public function getLabel() { return _t('UncleCheese\Dashboard\Dashboard.QUICKLINKSLABEL','Quick Links'); } public function getDescription() { return _t('UncleCheese\Dashboard\Dashbaord.QUICKLINKSDESCRIPTION','Allows management of arbitrary links from the dashboard'); } public function getConfiguration() { $fields = parent::getConfiguration(); $fields->push(DashboardHasManyRelationEditor::create($this, "Links", DashboardQuickLink::class)); return $fields; } } |