ActionInterface
in
Content type action interface
Table of Contents
Constants
- ACTION_TYPES = [Self::CONVERT_ACTION, Self::EXPORT_ACTION, Self::IMPORT_ACTION]
- CONVERT_ACTION = 'convert'
- EXPORT_ACTION = 'export'
- IMPORT_ACTION = 'import'
Methods
- execute() : mixed
- Execute action
- getName() : string
- Get field name
- getTitle() : string|null
- Get field title
- getType() : string
- Get field type
- init() : void
- Init action
Constants
ACTION_TYPES
public
mixed
ACTION_TYPES
= [Self::CONVERT_ACTION, Self::EXPORT_ACTION, Self::IMPORT_ACTION]
CONVERT_ACTION
public
mixed
CONVERT_ACTION
= 'convert'
EXPORT_ACTION
public
mixed
EXPORT_ACTION
= 'export'
IMPORT_ACTION
public
mixed
IMPORT_ACTION
= 'import'
Methods
execute()
Execute action
public
execute(ContentItemInterface $content[, array<string|int, mixed>|null $options = [] ]) : mixed
Parameters
- $content : ContentItemInterface
- $options : array<string|int, mixed>|null = []
getName()
Get field name
public
getName() : string
Return values
stringgetTitle()
Get field title
public
getTitle() : string|null
Return values
string|nullgetType()
Get field type
public
getType() : string
Return values
stringinit()
Init action
public
init() : void