<?php /** * ###### * ###### * ############ ####( ###### #####. ###### ############ ############ * ############# #####( ###### #####. ###### ############# ############# * ###### #####( ###### #####. ###### ##### ###### ##### ###### * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### * ###### ###### #####( ###### #####. ###### ##### ##### ###### * ############# ############# ############# ############# ##### ###### * ############ ############ ############# ############ ##### ###### * ###### * ############# * ############ * * Adyen Payment module (https://www.adyen.com/) * * Copyright (c) 2015 Adyen BV (https://www.adyen.com/) * See LICENSE.txt for license details. * * Author: Adyen <magento@adyen.com> */ /** * Field renderer for PayPal merchant country selector */ namespace Adyen\Payment\Block\Adminhtml\System\Config\Field; class Version extends \Magento\Config\Block\System\Config\Form\Field { /** * @var \Magento\Framework\Module\ModuleListInterface */ protected $_moduleList; public function __construct( \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Backend\Block\Template\Context $context, array $data = [] ) { parent::__construct($context, $data); $this->_moduleList = $moduleList; } protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element) { return (string) $this->_moduleList->getOne("Adyen_Payment")['setup_version']; } }