ActivitiesApprovalContextRenderer
in package
implements
ApprovalContextRendererInterface
Provides rich display context for Activity authorization approvals shown in the unified approvals queue.
Table of Contents
Interfaces
- ApprovalContextRendererInterface
- Renders entity-aware context for the unified approvals UI.
Methods
- canRender() : bool
- Whether this renderer can handle the given workflow instance.
- render() : ApprovalContext
- Build an ApprovalContext for the given workflow instance.
- buildEntityUrl() : string|null
- Build a URL to the authorization entity view.
- loadActivityName() : string
- Load activity name by ID.
- loadRequesterName() : string|null
- Load requester SCA name by member ID.
Methods
canRender()
Whether this renderer can handle the given workflow instance.
public
canRender(WorkflowInstance $instance) : bool
Parameters
- $instance : WorkflowInstance
-
Workflow instance to check
Tags
Return values
boolrender()
Build an ApprovalContext for the given workflow instance.
public
render(WorkflowInstance $instance) : ApprovalContext
Parameters
- $instance : WorkflowInstance
-
Workflow instance to render
Tags
Return values
ApprovalContextbuildEntityUrl()
Build a URL to the authorization entity view.
private
buildEntityUrl(string|int|null $authorizationId) : string|null
Parameters
- $authorizationId : string|int|null
-
Authorization ID.
Return values
string|nullloadActivityName()
Load activity name by ID.
private
loadActivityName(string|int|null $activityId) : string
Parameters
- $activityId : string|int|null
-
Activity ID.
Return values
stringloadRequesterName()
Load requester SCA name by member ID.
private
loadRequesterName(string|int|null $memberId) : string|null
Parameters
- $memberId : string|int|null
-
Member ID.