I see extensive Drupal 7 documentation for the Flags module, but very little for Drupal 8. I have a Signup flag on a Drupal 8 node (which is an event). I need to suppress the Signup link when a number of signups (flags) have been added to this node.
I'm trying with
hook_preprocess_flag() using the following code.
$flag_service = \Drupal::service('flag'); $flag = $flag_service->getFlagById('signup');
What call gets the flag_count of that flag?