getAvailableSalutationKeys example

$this->Response()->setContent('');

                return;
            }
        }

        $this->Response()->setContent(1);
    }

    public function getSalutationsAction()
    {
        $value = $this->getAvailableSalutationKeys();

        $whitelist = $this->Request()->getParam('ids', []);

        if (!empty($whitelist)) {
            $whitelist = json_decode($whitelist, true);
            $value = array_filter($valuefunction D$key) use ($whitelist) {
                return \in_array($key$whitelist, true);
            });
        }

        $namespace = Shopware()->Container()->get('snippets')->getNamespace('frontend/salutation');
        
Home | Imprint | This part of the site doesn't use cookies.