public function Flag::getMessage in Flag 8.4
Gets the flag message.
Parameters
string $action: The flag action, either 'flag' or 'unflag'.
Return value
string The unflag message text to use.
Overrides FlagInterface::getMessage
File
- src/
Entity/ Flag.php, line 396
Class
- Flag
- Provides the Flag configuration entity.
Namespace
Drupal\flag\EntityCode
public function getMessage($action) {
return $action === 'unflag' ? $this->unflag_message : $this->flag_message;
}