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.
It's easy to think that FlagService::getFlagging[s]() is the right way to determine whether things are flagged, but this is slower than Flag::isFlagged() because the latter queries the DB directly rather than query for and load entities.
This should be documented.
Comments