Adding the following method as custom helper file and check the below sample.

Sample: