public function Flag::getLongText in Flag 8.4
Gets the flag long text.
Parameters
string $action: The flag action, either 'flag' or 'unflag'.
Return value
string A string containing the flag long text.
Overrides FlagInterface::getLongText
File
- src/
Entity/ Flag.php, line 382
Class
- Flag
- Provides the Flag configuration entity.
Namespace
Drupal\flag\EntityCode
public function getLongText($action) {
return $action === 'unflag' ? $this->unflag_long : $this->flag_long;
}