abstract class Action implements ActionInterface

Content type action abstract class

Properties

protected string $name Action name
protected string $actionType Action type
protected string|null $title Action title

Methods

__construct(string|null $name = null, string|null $actionType = null, string|null $title = null)

Constructor

void
init()

Init action

mixed
execute(ContentItemInterface $content, array|null $options = [])

Execute action

string
getName()

Get name

string|null
getTitle()

Get title

string
getType()

Get type

string
getClass()

Get class

void
setTitle(string $title)

Set title

void
setType(string $actionType)

Set type

void
setName(string $name)

Set name

Details

at line 50
__construct(string|null $name = null, string|null $actionType = null, string|null $title = null)

Constructor

Parameters

string|null $name
string|null $actionType
string|null $title

Exceptions

Exception

at line 67
abstract void init()

Init action

Return Value

void

at line 76
abstract mixed execute(ContentItemInterface $content, array|null $options = [])

Execute action

Parameters

ContentItemInterface $content
array|null $options

Return Value

mixed

at line 83
string getName()

Get name

Return Value

string

at line 93
string|null getTitle()

Get title

Return Value

string|null

at line 103
string getType()

Get type

Return Value

string

at line 113
string getClass()

Get class

Return Value

string

at line 124
void setTitle(string $title)

Set title

Parameters

string $title

Return Value

void

at line 135
protected void setType(string $actionType)

Set type

Parameters

string $actionType

Return Value

void

at line 146
protected void setName(string $name)

Set name

Parameters

string $name

Return Value

void