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