ApprovalContextRendererInterface
in
Renders entity-aware context for the unified approvals UI.
Plugins implement this to provide rich display context for their entity types within approval workflows.
Table of Contents
Methods
- canRender() : bool
- Whether this renderer can handle the given workflow instance.
- render() : ApprovalContext
- Build an ApprovalContext for the given workflow instance.
Methods
canRender()
Whether this renderer can handle the given workflow instance.
public
canRender(WorkflowInstance $instance) : bool
Parameters
- $instance : WorkflowInstance
-
Workflow instance to check
Return values
boolrender()
Build an ApprovalContext for the given workflow instance.
public
render(WorkflowInstance $instance) : ApprovalContext
Parameters
- $instance : WorkflowInstance
-
Workflow instance to render