public function Flag::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.
Overrides FlagInterface::isGlobal
File
- src/
Entity/ Flag.php, line 349
Class
- Flag
- Provides the Flag configuration entity.
Namespace
Drupal\flag\EntityCode
public function isGlobal() {
return $this->global;
}