| Method | Description | Returns |
|---|---|---|
| __toString() | Handle string representation for response model | string |
| getIframeSrcText() | Get the escaped source of the text for the use within an iframe src tag | string |
| isBlank() | Return the information that this is not blank content | bool |
| getText() | Get the text for this content. Also parses image and link placeholders in the process. | string |
| getDate() | Get the date from the content | DateTime |
| getRecordModel() | Retrieve the model associated with the content for content with the 'record' category | Model |
| getRecordModels() | Retrieve the models associated with the content for content with the 'records' category | Collection |
| getId() | int | |
| getCreated() | DateTime | |
| getModified() | DateTime | |
| getComponent() | Get the component for the content. In the frontend, this method will also return a global component. Returns a BlankComponent if no component was set. | Component |
| getGlobalComponent() | GlobalComponent | |
| getImage() | Get the image for the content Will return a BlankImage if no image was set | Image |
| getFile() | File | |
| getType() | InputType | |
| getWidget() | Get the widget for the content Will return a BlankWidget if no widget was set | Widget |
| getCollection() | Collection | |
| getContainer() | Model | |
| getValues() | Gets values of the content in array representation. Should be used for "multiselect" input type. Otherwise, it will always be an empty array. | array |
| isEmpty() | Checks if the content is empty. Also considers blank images, widgets or components in the frontend. | bool |
| 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 |
| getHtml() | Get the HTML for this content | string |
Common\Models\Frontend\Content
Content