for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAYONE Magento 2 Connector is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License
* along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>.
* PHP version 5
* @category Payone
* @package Payone_Magento2_Plugin
* @author FATCHIP GmbH <[email protected]>
* @copyright 2003 - 2017 Payone GmbH
* @license <http://www.gnu.org/licenses/> GNU Lesser General Public License
* @link http://www.payone.de
*/
namespace Payone\Core\Block\Adminhtml\Config\Form\Field;
* Admin-block for readonly fields
class Readonly extends \Magento\Config\Block\System\Config\Form\Field
{
* Unset some non-related element parameters
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
$element->setReadonly(true);
return parent::render($element);
}