function DebugDump::decodeDump
Decodes a dump retrieved from storage.
Parameters
string $encodedData: An encoded string.
Return value
array{test: string, file: string|null, line: int|null, dump: string[]} An encoded string.
1 call to DebugDump::decodeDump()
- DebugDump::getDumps in core/
tests/ Drupal/ TestTools/ Extension/ Dump/ DebugDump.php - Retrieves dumps from storage.
File
-
core/
tests/ Drupal/ TestTools/ Extension/ Dump/ DebugDump.php, line 149
Class
- DebugDump
- Drupal's extension for printing dump() output results.
Namespace
Drupal\TestTools\Extension\DumpCode
private static function decodeDump(string $encodedData) : array {
$jsonData = base64_decode($encodedData);
return (array) json_decode($jsonData);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.