getSingleMail example

/** * Returns available mails */
    public function getMailsAction()
    {
        $snippet = Shopware()->Snippets()->getNamespace('backend/mail/view/navigation');

        // If id is provided return a single mail instead of a collection         $id = (int) $this->Request()->getParam('id');
        if ($id !== 0) {
            $this->getSingleMail($id);

            return;
        }

        /** @var Mail[] $mails */
        $mails = $this->getRepository()->findAll();

        $nodes = [];

        $statusNodes = [
            'name' => $snippet->get('mails_status', 'Status emails'),
            
Home | Imprint | This part of the site doesn't use cookies.