N98\Magento\Command\Developer\Module\UpdateCommand::addGlobalNode PHP Méthode

addGlobalNode() protected méthode

protected addGlobalNode ( SimpleXMLElement $configXml, string $type, string $classSuffix )
$configXml SimpleXMLElement
$type string e.g. "blocks"
$classSuffix string e.g. "_Block"
    protected function addGlobalNode(\SimpleXMLElement $configXml, $type, $classSuffix)
    {
        $this->removeChildNodeIfNotNull($configXml->global, $type);
        $global = $configXml->global ? $configXml->global : $configXml->addChild('global');
        $globalNode = $global->addChild($type);
        $moduleNamespaceNode = $globalNode->addChild($this->getLowercaseModuleNamespace());
        $moduleNamespaceNode->addChild('class', $this->getModuleNamespace() . $classSuffix);
    }