class UsageController extends ActionController (View source)

Controller for asset usage handling

Traits

A trait to add create a content context

Properties

protected ContentContextFactory $_contextFactory from  CreateContentContextTrait
protected SiteRepository $_siteRepository from  CreateContentContextTrait
protected AssetService $assetService
protected ContentDimensionPresetSourceInterface $contentDimensionPresetSource
protected UserService $userService
protected SiteRepository $siteRepository
protected NodeTypeManager $nodeTypeManager
protected WorkspaceRepository $workspaceRepository
protected UserService $domainUserService

Methods

createContentContext(string $workspaceName, array $dimensions = [])

Create a ContentContext based on the given workspace name

createContextMatchingNodeData(NodeData $nodeData)

Generates a Context that exactly fits the given NodeData Workspace, Dimensions & Site.

void
relatedNodesAction(AssetInterface $asset)

Get Related Nodes for an asset

Details

protected ContentContext createContentContext(string $workspaceName, array $dimensions = [])

Create a ContentContext based on the given workspace name

Parameters

string $workspaceName

Name of the workspace to set for the context

array $dimensions

Optional list of dimensions and their values which should be set

Return Value

ContentContext

protected ContentContext createContextMatchingNodeData(NodeData $nodeData)

Generates a Context that exactly fits the given NodeData Workspace, Dimensions & Site.

Parameters

NodeData $nodeData

Return Value

ContentContext

void relatedNodesAction(AssetInterface $asset)

Get Related Nodes for an asset

Parameters

AssetInterface $asset

Return Value

void