Action
in package
implements
ActionInterface
AbstractYes
Content type action abstract class
Table of Contents
Interfaces
- ActionInterface
- Content type action interface
Properties
- $actionType : string
- Action type
- $name : string
- Action name
- $title : string|null
- Action title
Methods
- __construct() : mixed
- Constructor
- execute() : mixed
- Execute action
- getClass() : string
- Get class
- getName() : string
- Get name
- getTitle() : string
- Get title
- getType() : string
- Get type
- init() : void
- Init action
- setTitle() : void
- Set title
- setName() : void
- Set name
- setType() : void
- Set type
Properties
$actionType
Action type
protected
string
$actionType
$name
Action name
protected
string
$name
$title
Action title
protected
string|null
$title
Methods
__construct()
Constructor
public
__construct([string|null $name = null ][, string|null $actionType = null ][, string|null $title = null ]) : mixed
Parameters
- $name : string|null = null
- $actionType : string|null = null
- $title : string|null = null
Tags
execute()
Execute action
public
abstract execute(ContentItemInterface $content[, array<string|int, mixed>|null $options = [] ]) : mixed
Parameters
- $content : ContentItemInterface
- $options : array<string|int, mixed>|null = []
getClass()
Get class
public
getClass() : string
Return values
stringgetName()
Get name
public
getName() : string
Return values
stringgetTitle()
Get title
public
getTitle() : string
Return values
stringgetType()
Get type
public
getType() : string
Return values
stringinit()
Init action
public
abstract init() : void
setTitle()
Set title
public
setTitle(string $title) : void
Parameters
- $title : string
setName()
Set name
protected
setName(string $name) : void
Parameters
- $name : string
setType()
Set type
protected
setType(string $actionType) : void
Parameters
- $actionType : string