bundle/Helper/MailHelper.php
protected function getDefaultTemplateParameters(): array
    {
        if ($this->siteUrl === null) {
            $this->siteUrl = $this->urlGenerator->generate(
                'ez_urlalias',
                [
                    'locationId' => $this->configResolver->getParameter('content.tree_root.location_id'),
                ],
                UrlGeneratorInterface::ABSOLUTE_URL
            );
        }

        if ($this->siteName === null) {
            $this->siteName = trim($this->siteInfoHelper->getSiteInfoContent()->getField('site_name')->value->text);
        }

        return [
            'site_url' => $this->siteUrl,
            'site_name' => $this->siteName,
        ];
    }
protected function getDefaultTemplateParameters(): array
    {
        if ($this->siteUrl === null) {
            $this->siteUrl = $this->urlGenerator->generate(
                'ez_urlalias',
                [
                    'locationId' => $this->configResolver->getParameter('content.tree_root.location_id'),
                ],
                UrlGeneratorInterface::ABSOLUTE_URL
            );
        }

        if ($this->siteName === null) {
            $this->siteName = trim($this->siteInfoHelper->getSiteInfoContent()->getField('site_name')->value->text);
        }

        return [
            'site_url' => $this->siteUrl,
            'site_name' => $this->siteName,
        ];
    }
protected function getDefaultTemplateParameters ( ) : array { if ( $ this -> siteUrl === null ) { $ this -> siteUrl = $ this -> urlGenerator -> generate ( 'ez_urlalias' , [ 'locationId' => $ this -> configResolver -> getParameter ( 'content.tree_root.location_id' ) , ] , UrlGeneratorInterface :: ABSOLUTE_URL ) ; } if ( $ this -> siteName === null ) { $ this -> siteName = trim ( $ this -> siteInfoHelper -> getSiteInfoContent ( ) -> getField ( 'site_name' ) -> value -> text ) ; } return [ 'site_url' => $ this -> siteUrl , 'site_name' => $ this -> siteName , ] ; }
Returns an array of parameters that will be passed to every mail template.
Returns an array of parameters that will be passed to every mail template .