File tree Expand file tree Collapse file tree 8 files changed +16
-13
lines changed Expand file tree Collapse file tree 8 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 11
11
<module name =" Magento_Store" />
12
12
<module name =" Magento_Theme" />
13
13
<module name =" Magento_Variable" />
14
+ <module name =" Magento_MediaContentCms" />
14
15
</sequence >
15
16
</module >
16
17
</config >
Original file line number Diff line number Diff line change 11
11
use Magento \MediaContentApi \Api \Data \ContentIdentityInterface ;
12
12
13
13
/**
14
- * Saving data represents relation between the media asset and media content
14
+ * Assign a media asset to the piece of content. Should be executed when media assets is added to the content
15
15
* @api
16
16
*/
17
17
interface AssignAssetsInterface
18
18
{
19
19
/**
20
- * Save relation between media asset and media content.
20
+ * Assign a media asset to the piece of content. Should be executed when media assets is added to the content
21
21
*
22
22
* @param ContentIdentityInterface $contentIdentity
23
23
* @param int[] $assetIds
Original file line number Diff line number Diff line change 10
10
use Magento \MediaGalleryApi \Api \Data \AssetInterface ;
11
11
12
12
/**
13
- * Used for extracting media asset list from a media content by the search pattern.
13
+ * Parse the content string for references to media assets and return the list of identified media assets
14
14
* @api
15
15
*/
16
16
interface ExtractAssetsFromContentInterface
17
17
{
18
18
/**
19
- * Search for the media asset in content and extract it providing a list of media assets.
19
+ * Parse the content string for references to media assets and return the list of identified media assets
20
20
*
21
21
* @param string $content
22
22
* @return AssetInterface[]
Original file line number Diff line number Diff line change 11
11
use Magento \MediaContentApi \Api \Data \ContentIdentityInterface ;
12
12
13
13
/**
14
- * Get media asset ids used in the content
14
+ * Get media asset ids that are used in the piece of content identified by the specified content identity
15
15
* @api
16
16
*/
17
17
interface GetAssetIdsUsedInContentInterface
18
18
{
19
19
/**
20
- * Get media asset ids used in the content
20
+ * Get media asset ids that are used in the piece of content identified by the specified content identity
21
21
*
22
22
* @param ContentIdentityInterface $contentIdentity
23
23
* @return int[]
Original file line number Diff line number Diff line change 11
11
use Magento \MediaContentApi \Api \Data \ContentIdentityInterface ;
12
12
13
13
/**
14
- * Get media content list which is used with the specified media asset
14
+ * Get list of content identifiers for pieces of content that include the specified media asset
15
15
* @api
16
16
*/
17
17
interface GetContentWithAssetsInterface
18
18
{
19
19
/**
20
- * Get media asset to content relations by media asset id.
20
+ * Get list of content identifiers for pieces of content that include the specified media asset
21
21
*
22
22
* @param int[] $assetIds
23
23
* @return ContentIdentityInterface[]
Original file line number Diff line number Diff line change 11
11
use Magento \MediaContentApi \Api \Data \ContentIdentityInterface ;
12
12
13
13
/**
14
- * Unassign relation between the media asset and media content where the media asset is used
14
+ * Remove the relation between media asset and the piece of content. I.e media asset no longer part of the content
15
15
* @api
16
16
*/
17
17
interface UnassignAssetsInterface
18
18
{
19
19
/**
20
- * Remove relation between the media asset and media content.
20
+ * Remove relation between the media asset and the content. I.e media asset no longer part of the content
21
21
*
22
22
* @param int[] $assetIds
23
23
* @param ContentIdentityInterface $contentIdentity
Original file line number Diff line number Diff line change 10
10
use Magento \MediaContentApi \Api \Data \ContentIdentityInterface ;
11
11
12
12
/**
13
- * Process relation managing between media asset and content: assign or unassign relation if exists.
13
+ * Update the media assets to content relations. Assign new media assets and unassign media assets no longer used
14
14
*/
15
15
interface UpdateRelationsInterface
16
16
{
17
17
/**
18
- * Create new relation between media asset and content or updated existing
18
+ * Update the media assets to content relations. Assign new media assets and unassign media assets no longer used
19
19
*
20
20
* @param ContentIdentityInterface $contentIdentity
21
21
* @param string $content
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
9
- <module name =" Magento_MediaContentCms" />
9
+ <module name =" Magento_MediaContentCms" >
10
+ <module name =" Magento_MediaContent" />
11
+ </module >
10
12
</config >
You can’t perform that action at this time.
0 commit comments