_paypalConfig = $paypalConfig; $this->_localeResolver = $localeResolver; parent::__construct($context, $data); } /** * Return URL for Paypal Landing page * * @return string */ public function getAboutPaypalPageUrl() { return $this->_getConfig()->getPaymentMarkWhatIsPaypalUrl($this->_localeResolver); } /** * Getter for paypal config * * @return \Magento\Paypal\Model\Config */ protected function _getConfig() { return $this->_paypalConfig; } /** * Disable block output if logo turned off * * @return string */ protected function _toHtml() { $type = $this->getLogoType(); // assigned in layout etc. $logoUrl = $this->_getConfig()->getAdditionalOptionsLogoUrl($this->_localeResolver->getLocale(), $type); if (!$logoUrl) { return ''; } $this->setLogoImageUrl($logoUrl); return parent::_toHtml(); } }