Tag Archives: admin

Magento2 get admin url

Magento2 get admin URL Magento2 get admin url.If   want to get admin URL to Magento 2 then you can try below Solution In order to get admin  URL ,you need to inject the  Magento_Backend ‘s helper class Magento\Backend\Helper\Data  to  __construct() function. /** * @var Magento\Backend\Helper\Data */ protected $HelperBackend; public function __construct( …. \Magento\Backend\Helper\Data $HelperBackend …. ) { … $this->HelperBackend = …