g
Frontend | Backend | Api

Sites\Models\Frontend\Environment

Environment

Method Description Returns
isPrimary() Check whether this environment is the primary environment bool
getLastVcsHash() Gets last VCS hash for current environment. Returns first 7 characters. string
getId() int
getName() string
getSitePath() string
getRootEntity() Get the root entity associated with this environment string
getRootRecordId() Get the ID of the root record associated with this environment int
getPrimaryHostname() Hostname
getVcsConfig() VcsConfig
getSite() Site
getHostnames() Collection (Hostname)
getVcsLogs() Collection (VcsLog)
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