Site icon Sudhanshu's Blog

Determine how to locate different types of files in Magento 2

Magento 2’s core files are found in /vendor/magento or /app/code/Magento

/Api: Service Contracts

/Api/Data: Data Service Contacts

/Block: View Models (or template “assistants”)

/Console: Console Commands

/Controller: Web Request Handlers

/Controller/Adminhtml: Admin controllers

/Cron: Cron Job Classes

/etc: Configuration files

/Helper: Occasionally useful for small, reusable code

/i18n: Translation CSV Files

/Model: Data Handling and Structures

/Model/ResourceModel: Database Interactions

/Observer: Event Listeners

/Plugin: Function Modification

/Setup: Database Modification

/Test:

/Ui: UI Component Data Providers

Exit mobile version