Method | Description | Returns |
---|---|---|
isSiteRequired() | Determine whether the site is required from the custom entity definition | bool |
getName() | Get the name of the active revision of the record | string |
getLayout() | Get the layout for the record revision. Since custom entity records use a layout defined on the definition level, this returns the same layout for all records of the definition. | Layout |
getOriginalPath() | Get the original path for the record without any custom urls applied | string |
getFullSlug() | Get the slug of the record, including the slugs of parent records | string |
getFullPath() | Get the full path including the custom entity index | string |
getUrl() | Get the url or path for the record. If the record belongs to a different site, this is respected in the returned url. This method will return the url using the primary environment and the primary hostname independently of the current environment the requests is viewed through. | string |
getAllRelationships() | Get all relationships this record has, sorted by relationship definition position. One entry per definition. Also returns empty relationships for definitions where no record was linked. | Collection |
isSupportingBranches() | Checks whether the record supports branches | bool |
getAssignedWorkflow() | Get the workflow assigned to the record or entity | Workflow |
hasAssignedWorkflow() | Check whether the record has an assigned workflow | bool |
getBranches() | Get the branches associated with the record | Collection |
getBranchRevisions(RevisionBranch $branch) | Get the revisions for the provided branch | Collection |
getNumRevisionsWithoutBranch() | Get the number of revisions without branch | int |
getRevisionsWithoutBranch() | Get all revisions without branch | Collection |
getId() | int | |
getSlug() | string | |
getPosition() | int | |
getCreated() | Date the record was created. | DateTime |
getModified() | Last modification date for the record. | DateTime |
getPublished() | DateTime | |
getDefinition() | Definition | |
getActiveRevision() | RecordRevision | |
getParent() | Record | |
getChildren() | Collection (Record) | |
getLanguage() | Language | |
getSite() | Site | |
isPublished() | Determines if the record is published. | bool |
getRevisions() | Collection (RecordRevision) | |
getRelationships() | Collection (Relationship) | |
getInverseRelationships() | Collection (Relationship) | |
getTags() | Tags associated with the page | Collection (Tag) |
getCategories() | Categories associated with the page | Collection (Category) |
getRevisionById(int $id) | RecordRevision | |
getLastRevision() | RecordRevision | |
getFullPosition() | Get the full position for this record. Returns a flat position if the definition of the custom entity is not positioned. | string |
getCustomUrl() | Get the custom url used for the page. This will take precedence over the slugs of this page, parent page and the module. | CustomUrl |
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 |
getShowFrontendUrl() | string | |
getEditBreadcrumbs() | Get the breadcrumbs to display while editing the record | string |
getCreateChildTypeLinks() | array | |
getHateoasLinks() | Get the HATEOAS links for the record | array |
getCreateChildUrl() | Get the url for creating a child record. | string |
getEditUrl() | Get the url for editing the record. | string |
getManageUrl() | Get the url for managing records. | string |
getMoveUrl() | Get the url for moving the record. | string |
getDeleteUrl() | Get the url for deleting the record. | string |
getPermissionsUrl() | Get the url for editing the permissions of the record. | string |
getCheckPermissionsUrl() | Get the url for checking user permissions for this record. | string |
getPublishUrl() | Get the url for publishing the record. | string |
getDefaultLanguage() | Get the default language for the record | Language |
getAvailableLanguages() | Get the available languages | Collection |
getAvailableSaveActions(?Coredna\Kernel\Models\Model|null $currentRevision) | Get the save actions available for the record and provided revision being edited | array |
getAvailableSaveNewActions() | Get the actions available for saving a new version of the record. Determined whether an active revision can be set directly, and in which order the actions should be returned. | array |
getRevisionActions(Coredna\Kernel\Models\Model $revision, ?Coredna\Kernel\Models\Model|null $currentRevision) | Get the actions available for the provided revision | array |
getUpdateRevisionId(Coredna\Kernel\Models\Revision $revision) | Get the revision ID to use when updating the record. If the provided revision is a draft, the previous id is returned, if one exists. | int |
CustomEntities\Models\Backend\Record
Record