We use the following helper to get the current category: class Category extends MagentoFrameworkViewElementTemplate { protected $_registry; public function __construct( MagentoBackendBlockTemplateContext $context, MagentoFrameworkRegistry $registry, array $data = [] ) { $this->_registry = $registry; parent::__construct($context, $data); } public function _prepareLayout() { return parent::_prepareLayout(); } public function getCurrentCategory() { return $this->_registry->registry('current_category'); } […]