You are here

public function LogMessage::getReferrer in File Log 8

Same name and namespace in other branches
  1. 2.0.x src/LogMessage.php \Drupal\filelog\LogMessage::getReferrer()

Get the referrer of the message.

Return value

string|null The referrer, or NULL.

File

src/LogMessage.php, line 197

Class

LogMessage
Represents a single log event.

Namespace

Drupal\filelog

Code

public function getReferrer() : ?string {
  return $this->context['referer'] ?? NULL;
}