Method | Description | Returns |
---|---|---|
getStepColor() | Get the color for the current step the branch is in | string |
getStepName() | Get the name for the current step the branch is in | string |
isTransitionApproved(Transition $transition) | Checks whether the transition can be done due to branch approvals | bool |
getRecord() | Get the record associated with the branch | Model |
getRevisions() | Get the revisions for the record associated with this branch | Collection |
getLastRevision() | Get the last revision of the branch | Revision |
getTranslatedEntityName() | Get the translated entity name for the branch, or the custom entity definition name if defined | string |
getAvailableTransitions() | Get the possible transitions available for this branch | array |
isAllowingChanges() | Check if the record may be edited in the current workflow step of this branch | bool |
getId() | int | |
getName() | string | |
getEntity() | string | |
getRecordId() | int | |
getCreated() | Date the record was created. | DateTime |
getModified() | Last modification date for the record. | DateTime |
getCurrentStep() | Step | |
getWorkflow() | Workflow | |
getComments() | Collection (BranchComment) | |
getTransitions() | Collection (BranchTransition) | |
getApprovals() | Collection (BranchApproval) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
Workflows\Models\Frontend\RevisionBranch
RevisionBranch