Main class for resource library is AResource.
To access the resource, you need to create an instance of the class with the resource type provided. Example of creating instance of resource class for image types.
To get a details of the resource, for instance for the product, you need to call method getResources with area name and ID.
object name is type of object you want to get resources for object id define certain object language id is optional parameter. if not specified - default language is used - $this->config->get('storefront_language_id'). you can provide id if you need to get some specific language
In example of product, it will be ‘products’ and id for the product.
Here are some more useful methods: