t('Dashboard Home Name'), 'label' => t('Dashboard Home Title'), 'priority' => t('Dashboard Priority Order') ]; } public function getSearchColumns() { return ['name']; } public function getDefaultSort() { return 'priority'; } public function createBehaviors(Behaviors $behaviors) { $behaviors->add(new BoolCast(['disabled'])); } public function createRelations(Relations $relations) { $relations->belongsTo('icingaweb_dashboard_owner', DashboardOwner::class) ->setCandidateKey('user_id'); $relations->hasMany(Dashboard\Pane::TABLE, Pane::class); } }