Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active September 12, 2024 13:53
Show Gist options
  • Select an option

  • Save DominicWatts/66f4b0ed3e7f6a1e24c7b2bfb1ff1f85 to your computer and use it in GitHub Desktop.

Select an option

Save DominicWatts/66f4b0ed3e7f6a1e24c7b2bfb1ff1f85 to your computer and use it in GitHub Desktop.
Magento 2 : __('') string #magento2
use Symfony\Component\Console\Output\OutputInterface
OutputInterface $output
$this->output = $output;
$this->output->writeln((string) __(
'[%1] Order Invoiced order <info>%2 : %3<info>',
date('Y-m-d H:i:s'),
$order->getId(),
$order->getIncrementId())
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment