New answers tagged

1

use Magento\Framework\View\Asset\Repository $asset = $this->assetRepository->createAsset('Magento_Catalog::images/image.png'); $asset = $this->assetRepository->createAsset('My_Module::images/image.png'); app/design/frontend/VENDOR/THEME/ $asset = $this->assetRepository->createAsset('images/image.png'); use Magento\Framework\View\...


Top 50 recent answers are included