plugin/dashboard/Manager/DashboardManager.php
public function getAll(User $user)
    {
        return array_map(function ($dashboard) {
            return $this->exportDashboard($dashboard);
        }, $this->getRepository()->findBy(['creator' => $user]));
    }
public function getAll(User $user)
    {
        return array_map(function ($dashboard) {
            return $this->exportDashboard($dashboard);
        }, $this->getRepository()->findBy(['creator' => $user]));
    }
public function getAll ( User $ user ) { return array_map ( function ( $ dashboard ) { return $ this -> exportDashboard ( $ dashboard ) ; } , $ this -> getRepository ( ) -> findBy ( [ 'creator' => $ user ] ) ) ; }
get all dashboards for a given user.
get all dashboards for a given user .