public function FlaggingStorageInterface::loadIsFlaggedMultiple in Flag 8.4
Loads a list of flags the entities are flagged with for the given account.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: The entities to check. All entities must be of the same type.
\Drupal\Core\Session\AccountInterface $account: The user account to check for.
string $session_id: (optional) The session ID. This must be supplied if $account is the anonymous user.
Return value
string[][] A list of flag_ids that for which the given entity is flagged, either globally or for the given account. Keyed by the entity IDs.
Throws
\LogicException Thrown when $account is anonymous but no associated session ID is specified.
1 method overrides FlaggingStorageInterface::loadIsFlaggedMultiple()
- FlaggingStorage::loadIsFlaggedMultiple in src/
Entity/ Storage/ FlaggingStorage.php - Loads a list of flags the entities are flagged with for the given account.
File
- src/
Entity/ Storage/ FlaggingStorageInterface.php, line 54
Class
- FlaggingStorageInterface
- Flagging storage.
Namespace
Drupal\flag\Entity\StorageCode
public function loadIsFlaggedMultiple(array $entities, AccountInterface $account, $session_id = NULL);