getFieldConfig(); /* @var $config array */ if (isset($config['base_url'])) { $element = $config['base_url']; $urlType = empty($element['type']) ? 'link' : (string)$element['type']; $url = $this->_urlBuilder->getBaseUrl(['_type' => $urlType]) . $element['value'] . '/' . $url; } return $url; } }