Skip to main content

Questions tagged [naming-convention]

Questions about naming convention in Magento

Filter by
Sorted by
Tagged with
0 votes
1 answer

Convert Class Name from CamelCase to kebab-or-dash-case

I'm trying to find the logic in Magento (if it exists/is usable) that converts class name from Upper Camel Case -to-> Kebab Case (or spinal case, dash case, lisp case, caterpillar case, hyphen case)...
medmek's user avatar
  • 764
1 vote
0 answers

Is there a relation to the dataPersistor/dbProvider reference and database table name?

I have inherited a custom module that is not working and not done yet. I have a question regarding the UI form components and its relation to naming and usage (for instance: database table name/UI ...
CvRChameleon's user avatar
0 votes
1 answer

Naming Convention in imports - use \class vs use class

I found that, "Magento 2, At its core is PSR-4 compliant". Then I got into this: and the table at the bottom: FULLY QUALIFIED CLASS NAME -> \Acme\Log\Writer\...
Gosu Przmak's user avatar
1 vote
1 answer

custom extensions - are hyphens allowed in the Extension name?

This is a follow up on the Magento 2 Extension naming convention question here. I've learned thus far that you need a Vendor Name an Extension (or Module) name a combination of both like ...
vrms's user avatar
  • 115
15 votes
4 answers

Magento 2 best practice for class locations and names

In Magento 1 we were used to place our classes in these directories Block Helper Model Resource and use a simple class name without any capital letters in the middle of the name. ...
Matthéo Geoffray's user avatar