public function FlaggingStorageInterface::loadIsFlagged in Flag 8.4
Loads a list of flags the entity is flagged with for the given account.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to check.
\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.
Throws
\LogicException Thrown when $account is anonymous but no associated session ID is specified.
1 method overrides FlaggingStorageInterface::loadIsFlagged()
- FlaggingStorage::loadIsFlagged in src/
Entity/ Storage/ FlaggingStorage.php - Loads a list of flags the entity is flagged with for the given account.
File
- src/
Entity/ Storage/ FlaggingStorageInterface.php, line 33
Class
- FlaggingStorageInterface
- Flagging storage.
Namespace
Drupal\flag\Entity\StorageCode
public function loadIsFlagged(EntityInterface $entity, AccountInterface $account, $session_id = NULL);