public function loadOwnSites(AccountInterface $account)
    {
        $roles = $this->getAccess()->getUserRoles($account);

        return $this->getStorage()->loadAll(array_keys($roles));
    }
public function loadOwnSites(AccountInterface $account)
    {
        $roles = $this->getAccess()->getUserRoles($account);

        return $this->getStorage()->loadAll(array_keys($roles));
    }
public function loadOwnSites ( AccountInterface $ account ) { $ roles = $ this -> getAccess ( ) -> getUserRoles ( $ account ) ; return $ this -> getStorage ( ) -> loadAll ( array_keys ( $ roles ) ) ; }
Load sites for which the user is a part of

@param AccountInterface $account

@return Site[]
Load sites for which the user is a part of