Daily Magento Tips
@DailyMagento
Followers
199
Following
5
Media
57
Statuses
102
It's easy to miss gems in devdocs. DMT is here for you fellow Devs! #Magento #Magento2 #Ecommerce #PHP #AdobeCommerce Humble opinions and tips are shared here.
Worldwide
Joined March 2021
Did you know it's possible to show additional content to Admin users by using ACL resource ? 👇 #Magento #AdobeCommerce
1
1
5
🔗Related links : https://t.co/oCJnqgjuD1
https://t.co/J1ij6DRLL2
0
0
0
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.
1
0
0
2⃣Declare it in the adminhtml/di.xml Declare your modifier in your module Di configuration <Your_Module_dir>/etc/adminhtml/di.xml. This declaration looks like the following:
1
0
1
1⃣ Add a custom PHP modifier In your custom module, add a class that implements Magento\Ui\DataProvider\Modifier\ModifierInterface with the following methods: - modifyData(): for modifying UI component's data - modifyMeta(): for modifying UI component's metada
1
0
1
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 👇
1
0
1
You can see quality patches here https://t.co/pclaw9XNa7
0
0
1
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" https://t.co/eOLTmQFfoP
0
0
2
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 👇
0
0
2
GraphQL allows you to request __typename, a meta field, at any point in a query to get the name of the object type at that point.
0
1
0
This #GraphQL request returns specific values in case product type is ConfigurableProduct.
1
0
0
📨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
0
1
5
💿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
1
1
2
Use these methods where you to retrieve config 🟠 isSetFlag is to retrieve boolean config values 🟠 getValue to retrieve any value (returns mixed)
0
1
0