Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See for example getEntityFlaggings():
if (!is_null($account)) {
if (!$flag->isGlobal()) {
$query->condition('uid', $account->id());
There is no point in giving an $account for a global flag. The documentation should clearly state this for this method and others that do the same thing.
Comments
Comment #2
joachim CreditAttribution: joachim as a volunteer commentedSame for loadIsFlagged() and loadIsFlaggedMultiple().