config = $config; parent::__construct($context, $data); } /** * @param \Magento\Framework\Data\Form\Element\AbstractElement $element * @return string */ public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element) { $elementId = $element->getId(); $html = ''; $enableMethodsNumber = $this->config->getEnableMethodsNumber(); if ($enableMethodsNumber < 2) { $text = __("Please Note!"); if ($enableMethodsNumber == 0) { $text .= " " . __("You must enable at least one service for this extension to function properly."); } $text .= " " . __("We recommend to enable 2 or more services below to provide the most accurate IP geolocation results. "); $html .= '