src/Frontend/Modules/Commerce/CheckoutStep/Step.php
/**
     * Add an error which will be displayed once.
     */
Add an error which will be displayed once.
Add an error which will be displayed once .
public function flashError(string $message): void
    {
        $errors = $this->session->get('flash_errors', []);
        $errors[] = $message;
        $this->session->set('flash_errors', $errors);
    }
public function flashError ( string $ message ) : void { $ errors = $ this -> session -> get ( 'flash_errors' , [ ] ) ; $ errors [ ] = $ message ; $ this -> session -> set ( 'flash_errors' , $ errors ) ; }
Add an error which will be displayed once.
Add an error which will be displayed once .