ContentItemInterface
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
at line 33
void
runAction(string $name, array|null $options = [])
Run action
at line 40
int|string
getId()
Get content item id
at line 47
array
fields()
Get fields
at line 56
mixed
getValue(string $fieldName, mixed $default = null)
Get field value
at line 65
void
setValue(string $fieldName, mixed $value)
Set field value
at line 73
FieldInterface|null
field(string $fieldName)
Get content field