File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
MediaGallery/Model/Asset/Command Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -59,22 +59,22 @@ public function __construct(
59
59
/**
60
60
* Return media asset asset list
61
61
*
62
- * @param string $mediaFilePath
62
+ * @param string $path
63
63
*
64
64
* @return AssetInterface
65
65
* @throws IntegrationException
66
66
*/
67
- public function execute (string $ mediaFilePath ): AssetInterface
67
+ public function execute (string $ path ): AssetInterface
68
68
{
69
69
try {
70
70
$ connection = $ this ->resourceConnection ->getConnection ();
71
71
$ select = $ connection ->select ()
72
72
->from ($ this ->resourceConnection ->getTableName (self ::TABLE_MEDIA_GALLERY_ASSET ))
73
- ->where (self ::MEDIA_GALLERY_ASSET_PATH . ' = ? ' , $ mediaFilePath );
73
+ ->where (self ::MEDIA_GALLERY_ASSET_PATH . ' = ? ' , $ path );
74
74
$ data = $ connection ->query ($ select )->fetch ();
75
75
76
76
if (empty ($ data )) {
77
- $ message = __ ('There is no such media asset with path "%1" ' , $ mediaFilePath );
77
+ $ message = __ ('There is no such media asset with path "%1" ' , $ path );
78
78
throw new NoSuchEntityException ($ message );
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function getPath(): string;
39
39
public function getTitle (): ?string ;
40
40
41
41
/**
42
- * Get source of the file
42
+ * Get the name of the channel/stock/integration file was retrieved from. null if not identified.
43
43
*
44
44
* @return string|null
45
45
*/
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ interface GetByPathInterface
17
17
/**
18
18
* Get media asset list
19
19
*
20
- * @param string $mediaFilePath
20
+ * @param string $path
21
21
* @return \Magento\MediaGalleryApi\Api\Data\AssetInterface
22
22
*/
23
- public function execute (string $ mediaFilePath ): \Magento \MediaGalleryApi \Api \Data \AssetInterface ;
23
+ public function execute (string $ path ): \Magento \MediaGalleryApi \Api \Data \AssetInterface ;
24
24
}
Original file line number Diff line number Diff line change 17
17
interface SaveInterface
18
18
{
19
19
/**
20
- * Save media asset
20
+ * Save media asset and return the media asset id
21
21
*
22
22
* @param \Magento\MediaGalleryApi\Api\Data\AssetInterface $mediaAsset
23
23
* @return int
You can’t perform that action at this time.
0 commit comments