public function FlagServiceInterface::unflagAllByUser in Flag 8.4
Remove all of a user's flaggings.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user object.
string $session_id: (optional) The session ID. This must be specified if $account is the anonymous user.
Throws
\LogicException Thrown when $account is anonymous but no associated session ID is specified.
1 method overrides FlagServiceInterface::unflagAllByUser()
- FlagService::unflagAllByUser in src/
FlagService.php - Remove all of a user's flaggings.
File
- src/
FlagServiceInterface.php, line 285
Class
- FlagServiceInterface
- Flag service interface.
Namespace
Drupal\flagCode
public function unflagAllByUser(AccountInterface $account, $session_id = NULL);