Frontend | Backend | Api

Common\Models\Api\Content

Content

Property Description Returns
iframeSrcText Get the escaped source of the text for the use within an iframe src tag string
blank Return the information that this is not blank content bool
text Get the text for this content. Also parses image and link placeholders in the process. string
date Get the date from the content DateTime
recordModel Retrieve the model associated with the content for content with the 'record' category Model
recordModels Retrieve the models associated with the content for content with the 'records' category Collection
id int
created DateTime
modified DateTime
component Component
globalComponent GlobalComponent
image Image
file File
type InputType
widget Widget
collection Collection
container Model
values Gets values of the content in array representation. Should be used for "multiselect" input type. Otherwise, it will always be an empty array. array
empty Checks if the content is empty bool