As per the documentation, you use printf(\'Document data for document %s:\' . PHP_EOL, $document->id()); This PERFECTLY works but when you echo $docume
printf(\'Document data for document %s:\' . PHP_EOL, $document->id());
echo $docume