QuestionQ21

Working with Admin

Which file should a developer use to define the default value while creating Admin configuration fields?

  • A etc/adminhtml/config.xml
  • B etc/config.xml
  • C etc/adminhtml/system.xml
Explanation

Adobe Commerce sets default values for Admin configuration fields in a module’s etc/config.xml, using the relevant section/group/field_ID path. The etc/adminhtml/system.xml file defines the Admin configuration field structure rather than its default value.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!