WarrantRosterApprovalContextRenderer
in package
implements
ApprovalContextRendererInterface
Provides rich display context for warrant roster 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 warrant roster view.
- getWarrantCount() : int
- Get the count of warrants in a roster.
- loadCreatorName() : string|null
- Load creator SCA name by member ID.
- loadRoster() : WarrantRoster|null
- Load the warrant roster entity.
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 warrant roster view.
private
buildEntityUrl(string|int|null $rosterId) : string|null
Parameters
- $rosterId : string|int|null
-
Roster ID.
Return values
string|nullgetWarrantCount()
Get the count of warrants in a roster.
private
getWarrantCount(int|null $rosterId, string|null $rosterStatus) : int
Parameters
- $rosterId : int|null
-
Roster ID.
- $rosterStatus : string|null
-
Current roster status.
Return values
intloadCreatorName()
Load creator SCA name by member ID.
private
loadCreatorName(string|int|null $memberId) : string|null
Parameters
- $memberId : string|int|null
-
Member ID.
Return values
string|nullloadRoster()
Load the warrant roster entity.
private
loadRoster(int|null $rosterId) : WarrantRoster|null
Parameters
- $rosterId : int|null
-
Roster ID.