fix: adds download preference to form
This commit is contained in:
@@ -281,6 +281,15 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
;
|
||||
}
|
||||
|
||||
public function getDownloadPreferences()
|
||||
{
|
||||
return Map::from($this->userPreferences)
|
||||
->rekey(fn(UserPreference $userPreference) => $userPreference->getPreference()->getId())
|
||||
->filter(fn(UserPreference $userPreference) => $userPreference->getPreference()->getType() === 'download')
|
||||
->toArray()
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection<int, Download>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user