The definition of function says it further checks the method _saveVendorModule in the current class ($this) for custom logic.

Does anyone has used this before to add or override some logic?

 * Custom save logic for section
 * @return void
protected function _saveSection()
    $method = '_save' . $this->string->upperCaseWords($this->getRequest()->getParam('section'), '_', '');
    print_r( $method );  //This will print _saveVendorModule
    if (method_exists($this, $method)) {


<?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
            <tab id="vendor_module" translate="label" sortOrder="10">
                <label>Vendor Name</label>
            <section id="module" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
                <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
                    <field id="dimension" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                        <label>Dimension Text</label>
                        <comment>Dimension Text will display on the storefront.</comment>


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.