src/View/Helper/GlideHelper.php
public function urlBuilder($urlBuilder = null)
    {
        if ($urlBuilder !== null) {
            return $this->_urlBuilder = $urlBuilder;
        }

        if (!isset($this->_urlBuilder)) {
            $config = $this->getConfig();

            $this->_urlBuilder = UrlBuilderFactory::create(
                $config['baseUrl'],
                $config['secureUrls'] ? ($config['signKey'] ?: Security::getSalt()) : null
            );
        }

        return $this->_urlBuilder;
    }
public function urlBuilder($urlBuilder = null)
    {
        if ($urlBuilder !== null) {
            return $this->_urlBuilder = $urlBuilder;
        }

        if (!isset($this->_urlBuilder)) {
            $config = $this->getConfig();

            $this->_urlBuilder = UrlBuilderFactory::create(
                $config['baseUrl'],
                $config['secureUrls'] ? ($config['signKey'] ?: Security::getSalt()) : null
            );
        }

        return $this->_urlBuilder;
    }
public function urlBuilder ( $ urlBuilder = null ) { if ( $ urlBuilder !== null ) { return $ this -> _urlBuilder = $ urlBuilder ; } if ( ! isset ( $ this -> _urlBuilder ) ) { $ config = $ this -> getConfig ( ) ; $ this -> _urlBuilder = UrlBuilderFactory :: create ( $ config [ 'baseUrl' ] , $ config [ 'secureUrls' ] ? ( $ config [ 'signKey' ] ? : Security :: getSalt ( ) ) : null ) ; } return $ this -> _urlBuilder ; }
Get URL builder instance.

@param \League\Glide\Urls\UrlBuilder|null $urlBuilder URL builder instance to
set or null to get instance.

@return \League\Glide\Urls\UrlBuilder URL builder instance.
Get URL builder instance .