interface ContentItemInterface

Content item interface

Methods

getType()

Get content type

void
runAction(string $name, array|null $options = [])

Run action

int|string
getId()

Get content item id

array
fields()

Get fields

mixed
getValue(string $fieldName, mixed $default = null)

Get field value

void
setValue(string $fieldName, mixed $value)

Set field value

FieldInterface|null
field(string $fieldName)

Get content field

Details

at line 24
ContentTypeInterface getType()

Get content type

Return Value

ContentTypeInterface

at line 33
void runAction(string $name, array|null $options = [])

Run action

Parameters

string $name
array|null $options

Return Value

void

at line 40
int|string getId()

Get content item id

Return Value

int|string

at line 47
array fields()

Get fields

Return Value

array

at line 56
mixed getValue(string $fieldName, mixed $default = null)

Get field value

Parameters

string $fieldName
mixed $default

Return Value

mixed

at line 65
void setValue(string $fieldName, mixed $value)

Set field value

Parameters

string $fieldName
mixed $value

Return Value

void

at line 73
FieldInterface|null field(string $fieldName)

Get content field

Parameters

string $fieldName

Return Value

FieldInterface|null