WorkflowServiceTrait

Trait for component workflow service.

since

4.0.0

package

Joomla CMS

Methods

getConditions

Returns an array of possible conditions for the component.

getConditions( extension) : mixed||string|int
static
since

4.0.0

Arguments

extension

stringThe component and section separated by ".".

Response

array<string|int, mixed>

getModelName

Returns the model name, based on the context

getModelName( context) : 
since

4.0.0

Arguments

context

stringThe context of the workflow

Response

bool

getMVCFactory

Get a MVC factory

getMVCFactory() : \Joomla\CMS\MVC\Factory\MVCFactoryInterface
abstract
since

4.0.0

Response

MVCFactoryInterface

isFunctionalityUsed

Check if the functionality is used by a plugin

isFunctionalityUsed( functionality,  extension) : 
throws

Exception

since

4.0.0

Arguments

functionality

stringThe functionality

extension

stringThe extension

Response

bool

isWorkflowActive

Check if the workflow is active

isWorkflowActive( context) : 

Arguments

context

stringThe context of the workflow

Response

bool

supportFunctionality

Check if the functionality is supported by the component The variable $supportFunctionality has the following structure [ 'core.featured' => [ 'com_content.article', ], 'core.state' => [ 'com_content.article', ], ]

supportFunctionality( functionality,  context) : 

Arguments

functionality

stringThe functionality

context

stringThe context of the functionality

Response

bool