UsageController
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
Details
protected ContentContext
createContentContext(string $workspaceName, array $dimensions = [])
Create a ContentContext based on the given workspace name
protected ContentContext
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