t('Dashboard Id'), 'name' => t('Dashlet Name'), 'label' => t('Dashlet Title'), 'url' => t('Dashlet Url'), 'priority' => t('Dashlet Order Priority') ]; } public function getSearchColumns() { return ['name']; } public function getDefaultSort() { return 'priority'; } public function createRelations(Relations $relations) { $relations->belongsTo(Dashboard\Pane::TABLE, Pane::class) ->setCandidateKey('dashboard_id'); //$relations->belongsTo(Dashboard\DashboardHome::TABLE, Home::class); $relations->belongsToMany('icingaweb_module_dashlet', ModuleDashlet::class) ->through(SystemDashlet::class) ->setForeignKey('dashlet_id') ->setJoinType('LEFT'); } }