What is Modifier Class ? 🧵
Modifier class used when static declaration in XML configuration files are not suitable or sufficient for tasks.
It’s done in three easy steps 👇
3⃣ Create a modifier Pool for your DataProvider
To use your modifier, add a dependency on \Magento\Ui\DataProvider\Modifier\PoolInterface
to your UI component data provider.
Magento now. recommends OpenSearch instead Elasticsearch 👇
". Adobe Commerce and Magento Open Source versions 2.4.4, 2.4.3-p2, and 2.3.7-p3 support the OpenSearch service"
devdocs.magento.com/cloud/pr…
i18n 🔄 Magento 2 has a command to collect translations phrases to a csv file so you don't miss any translations.
Let's see how i18n:collect-phrases command is used 👇
#Magento uses #GraphQL inline fragments to use specific values for particular types.
`... on {TypeName}` syntax is used for inline fragments. You can see the example below.
📨MessageManager lets you do use your own template on your messages.
Follow the steps :
- addComplexSuccessMessage
- use MessageConfigurationsPool in di.xml
- add your phtml template file
💿When a module removed/installed via composer it's automatically removed from /added to config.php after setup upgrade command.
'bin/magento module:enable' is not needed.
#DailyMagentoTips#Magento#AdobeCommerce