![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-backend/Model/Menu/Config/Menu/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Backend\Model\Menu\Config\Menu; use DOMElement; use Magento\Framework\Exception\LocalizedException; /** * Menu configuration files handler * @api * @since 100.0.2 */ class Dom extends \Magento\Framework\Config\Dom { /** * Getter for node by path * * @param string $nodePath * @return DOMElement|null * @throws LocalizedException an exception is possible if original document contains * multiple fixed nodes */ protected function _getMatchedNode($nodePath) { if (!$nodePath || !preg_match('/^\/config(\/menu)?$/i', $nodePath)) { return null; } return parent::_getMatchedNode($nodePath); } }