Magento escapeHtml() method used to define translate specific text messages in the template files.
You can use the escapeHtml() function to define normal as well as HTML text to translate out of the box in the template.
In the method, the first argument takes data as a text message and the second argument is the array value of specific HTML tags to escape from the string. Continue reading “How to use anchor link in escapeHtml text in magento 2?”
Verify Programmatically Current user has permission on given ACL Resource in Magento 2 using Authorization Interface.
Just Instantiate an object of Magento\Framework\AuthorizationInterface to the __construct() method of the Class.
Example to check the user has Catalog Access Permission or not, Continue reading “How to Check User has Permission on Given ACL Resouces in Magento 2?”
You can Retrieve the Rest Webapi Request Parameters while you working with the REST API in Magento.
Magento has the OOTB Webapi module that is dealing with Rest API functionality.
Useful Class, Magento\Framework\Webapi\Rest\Request Continue reading “How to Get Request Post Params from Rest Webapi Magento 2?”