public function LogMessage::getVariable in File Log 8
Same name and namespace in other branches
- 2.0.x src/LogMessage.php \Drupal\filelog\LogMessage::getVariable()
Get an arbitrary variable.
Parameters
string $name: The variable name (without format prefix).
Return value
string|null The value.
File
- src/
LogMessage.php, line 210
Class
- LogMessage
- Represents a single log event.
Namespace
Drupal\filelogCode
public function getVariable($name) : ?string {
return $this->variables[$name] ?? NULL;
}