Jarves\Command\ContentExportCommand::dumpYaml PHP Method

dumpYaml() protected method

protected dumpYaml ( string $data ) : string
$data string
return string
    protected function dumpYaml($data)
    {
        $dumper = new Dumper();
        if (defined('Symfony\\Component\\Yaml\\Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK')) {
            return $dumper->dump($data, 15, 2, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK);
        } else {
            return $dumper->dump($data, 15);
        }
    }