2

That is because of this phpDoc Block of your execute function /** * @inheritDoc */ If you check the parent interface Magento\Framework\App\ActionInterface It clearly defines the return type /** * Execute action based on request and return result * * Note: Request will be added as operation argument in future * * @return \Magento\Framework\...


1

Try this below code : $category = $block->getCurrentCategory(); $categoryId=$category->getId(); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $subCategory = $objectManager->create('Magento\Catalog\Model\Category')->load($categoryId); $subCats = $subCategory->getChildrenCategories(); $_helper = $this->helper('Magento\...


1

app/design/frontend/vendorname/modulename/Magento_Catalog/layout/catalog_category_view.xml <move element="category.description" destination="main.category.col.1" before="page.main.title"/> <move element="page.main.title" destination="main.category.col.1" after="category.description"...


Only top voted, non community-wiki answers of a minimum length are eligible