public function FlagInterface::isGlobal in Flag 8.4
Returns true if the flag is global, false otherwise.
Global flags disable the default behavior of a Flag. Instead of each user being able to flag or unflag the entity, a global flag may be flagged once for all users. The flagging's uid base field is set to the account that performed the flagging action in all cases.
Return value
bool TRUE if the flag is global, FALSE otherwise.
1 method overrides FlagInterface::isGlobal()
- Flag::isGlobal in src/
Entity/ Flag.php - Returns true if the flag is global, false otherwise.
File
- src/
FlagInterface.php, line 142
Class
- FlagInterface
- Defines the interface for Flag entities.
Namespace
Drupal\flagCode
public function isGlobal();