Property | Type | Description | |
---|---|---|---|
$assetCollectionRepository | |||
$assetRepository | |||
$entityToIdentityConverter | |||
$imageInterfaceArrayPresenter | |||
$imageRepository | Neos\Media\Domain\Repository\ImageRepository | ||
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$pluginService | The pluginService | ||
$resourceManager | |||
$siteRepository | |||
$thumbnailService |
Method | Description | |
---|---|---|
assetsWithMetadataAction ( array $assets ) : string | Fetch the metadata for multiple assets | |
createImageVariantAction ( |
Generate a new image variant from given data. | |
imageWithMetadataAction ( Neos\Media\Domain\Model\ImageInterface $image ) : string | Fetch the metadata for a given image | |
initializeCreateImageVariantAction ( ) : void | Configure property mapping for adding a new image variant. | |
initializeUploadAssetAction ( ) | Initialize property mapping as the upload usually comes from the Inspector JavaScript | |
masterPluginsAction ( string $workspaceName = 'live', array $dimensions = [] ) : string | Fetch all master plugins that are available in the current workspace. | |
pluginViewsAction ( string $identifier = null, string $workspaceName = 'live', array $dimensions = [] ) : string | Fetch the configured views for the given master plugin | |
uploadAssetAction ( |
Upload a new image, and return its metadata. |
Method | Description | |
---|---|---|
getAssetProperties ( |
||
getImageInterfacePreviewData ( Neos\Media\Domain\Model\ImageInterface $image ) : array | Returns important meta data for the given object implementing ImageInterface. | |
getImagePreviewData ( |
||
getImageVariantPreviewData ( |
||
initializeAssetsWithMetadataAction ( ) : void |
public assetsWithMetadataAction ( array $assets ) : string | ||
$assets | array | |
return | string | JSON encoded response |
public createImageVariantAction ( |
||
$asset | ||
return | string |
protected getAssetProperties ( |
||
$asset | ||
return | array |
protected getImageInterfacePreviewData ( Neos\Media\Domain\Model\ImageInterface $image ) : array | ||
$image | Neos\Media\Domain\Model\ImageInterface | The image to retrieve meta data for |
return | array |
protected getImagePreviewData ( |
||
$image | ||
return | array |
protected getImageVariantPreviewData ( |
||
$imageVariant | ||
return | array |
public imageWithMetadataAction ( Neos\Media\Domain\Model\ImageInterface $image ) : string | ||
$image | Neos\Media\Domain\Model\ImageInterface | |
return | string | JSON encoded response |
protected initializeAssetsWithMetadataAction ( ) : void | ||
return | void |
public initializeCreateImageVariantAction ( ) : void | ||
return | void |
public initializeUploadAssetAction ( ) |
public masterPluginsAction ( string $workspaceName = 'live', array $dimensions = [] ) : string | ||
$workspaceName | string | Name of the workspace to use for querying the node |
$dimensions | array | Optional list of dimensions and their values which should be used for querying the specified node |
return | string | JSON encoded array of node path => label |
public pluginViewsAction ( string $identifier = null, string $workspaceName = 'live', array $dimensions = [] ) : string | ||
$identifier | string | Specifies the node to look up |
$workspaceName | string | Name of the workspace to use for querying the node |
$dimensions | array | Optional list of dimensions and their values which should be used for querying the specified node |
return | string |
public uploadAssetAction ( |
||
$asset | ||
$metadata | string | Type of metadata to return ("Asset" or "Image") |
return | string |
protected AssetCollectionRepository,Neos\Media\Domain\Repository $assetCollectionRepository | ||
return |
protected AssetRepository,Neos\Media\Domain\Repository $assetRepository | ||
return |
protected EntityToIdentityConverter,Neos\Neos\TypeConverter $entityToIdentityConverter | ||
return |
protected ImageInterfaceArrayPresenter,Neos\Media\TypeConverter $imageInterfaceArrayPresenter | ||
return |
protected ImageRepository,Neos\Media\Domain\Repository $imageRepository | ||
return | Neos\Media\Domain\Repository\ImageRepository |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
return | Neos\Flow\Persistence\PersistenceManagerInterface |
protected PluginService,Neos\Neos\Service $pluginService | ||
return |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
return |
protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository | ||
return |