You are here

public function LogMessage::getContext in File Log 2.0.x

Same name and namespace in other branches
  1. 8 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 224

Class

LogMessage
Represents a single log event.

Namespace

Drupal\filelog

Code

public function getContext(string $name) : ?string {
  return $this->context[$name] ?? NULL;
}