You are here

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

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

Class

LogMessage
Represents a single log event.

Namespace

Drupal\filelog

Code

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