Frontend | Backend | Api

Discounts\Models\Backend\CodeUrl

CodeUrl

Method Description Returns
getOriginalPath() Get the original path for the code URL without custom urls applied string
getFullSlug() Gets the full slag as a discount code or a custom URL string
getFullPath() Gets the full path for the record; includes the module path. The path starts with a slash. Custom urls for this record will have been applied to the full path. string
getId() int
getRedirectEntity() string
getRedirectRecordId() int
getCreated() Date the record was created. DateTime
getModified() Last modification date for the record. DateTime
getCode() Code
getSite() Gets the site of the record Site
getCodeUrlProducts() Collection (CodeUrlProduct)
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