/** * @param \Training\Test2\Block\Context $context * @param \Magento\Framework\UrlFactory $urlFactory */ public function __construct(\Training\Test2\Block\Context $context) { $this->_devToolHelper = $context->getTest2Helper(); $this->_config = $context->getConfig(); $this->_urlApp = $context->getUrlFactory()->create(); parent::__construct($context); }