Magento 2 Certification Questions List | Add a category attribute

How to add and display a category attribute? (choose 2)

Answer:
  • Add attribute using MagentoEavSetupEavSetup::addAttribute via data patch.
  • Creating a category_form.xml file in the view/adminhtml/ui_component directory in your module.
Prepear for Magento 2 certefication with our interactive quiz