protected function MarkdownCommands::jsonEncodePrettyPrint in Markdown 8.2
Helper function for pretty printing JSON.
Parameters
mixed $value: The value to encode.
Return value
string The pretty printed JSON.
1 call to MarkdownCommands::jsonEncodePrettyPrint()
- MarkdownCommands::versionHash in src/
Commands/ MarkdownCommands.php - Run the markdown:version-hash hook.
File
- src/
Commands/ MarkdownCommands.php, line 168
Class
- MarkdownCommands
- Markdown commands for Drush 9+.
Namespace
Drupal\markdown\CommandsCode
protected function jsonEncodePrettyPrint($value) {
return json_encode($value, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_PRETTY_PRINT) . "\n";
}