You are here

public function FlagCountManagerInterface::getFlagFlaggingCount in Flag 8.4

Gets the count of flaggings for the given flag.

For example, if you have an 'endorse' flag, this method will tell you how many endorsements have been made, rather than how many things have been endorsed.

Parameters

\Drupal\flag\FlagInterface $flag: The flag.

Return value

int The number of flaggings for the flag.

1 method overrides FlagCountManagerInterface::getFlagFlaggingCount()
FlagCountManager::getFlagFlaggingCount in src/FlagCountManager.php
Gets the count of flaggings for the given flag.

File

src/FlagCountManagerInterface.php, line 50

Class

FlagCountManagerInterface
Interface FlagCountManagerInterface.

Namespace

Drupal\flag

Code

public function getFlagFlaggingCount(FlagInterface $flag);