You are here

public function JsonLogData::getJson in JSONlog 8

Same name and namespace in other branches
  1. 8.2 src/Logger/JsonLogData.php \Drupal\jsonlog\Logger\JsonLogData::getJson()
  2. 3.x src/Logger/JsonLogData.php \Drupal\jsonlog\Logger\JsonLogData::getJson()

Return value

string json representation of this class's data

File

src/Logger/JsonLogData.php, line 66

Class

JsonLogData

Namespace

Drupal\jsonlog\Logger

Code

public function getJson() {
  return Json::encode(get_object_vars($this));
}