Skip to content

Commit ddb64a5

Browse files
author
Valeriy Nayda
committed
GraphQL-174: Absolute image paths for Products
-- Fix static tests
1 parent 3196ebc commit ddb64a5

File tree

2 files changed

+4
-0
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductImage

2 files changed

+4
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductImage/Label.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public function resolve(
8080
}
8181

8282
/**
83+
* Get attribute value
84+
*
8385
* @param int $productId
8486
* @param string $attributeCode
8587
* @return null|string Null if attribute value is not exists

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductImage/Url.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public function resolve(
6060
}
6161

6262
/**
63+
* Get image url
64+
*
6365
* @param string $imageType
6466
* @param string|null $imagePath Null if image is not set
6567
* @return string

0 commit comments

Comments
 (0)