Magento 2.3 Topmenu override declaration error
-
06-03-2021 - |
Domanda
Declaration of _getHtml
Should be compatible with Magento\Theme\Block\Html\Topmenu::_getHtml(Magento\Framework\Data\Tree\Node $menuTree, $childrenWrapClass, $limit, array $colBrakes = Array)
Soluzione
Ibnab\MegaMenu\Block\Html\Topmega.php
protected function _getHtml(
\Magento\Framework\Data\Tree\Node $menuTree,
$childrenWrapClass,
$limit,
array $colBrakes = []
)
Also replace :
$colStops = null; to $colStops = [];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange