WorkflowServiceTrait

Trait for component workflow service.

since

4.0.0

Methods

getConditions

Returns an array of possible conditions for the component.

getConditions(string $extension) : array
static
since

4.0.0

Arguments

$extension

stringThe component and section separated by ".".

Response

array

getModelName

Returns the model name, based on the context

getModelName(string $context) : boolean
since

4.0.0

Arguments

$context

stringThe context of the workflow

Response

boolean

getMVCFactory

Get a MVC factory

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

isFunctionalityUsed

Check if the functionality is used by a plugin

isFunctionalityUsed(string $functionality, string $extension) : boolean
throws

\Exception

since

4.0.0

Arguments

$functionality

stringThe functionality

$extension

stringThe extension

Response

boolean

isWorkflowActive

Check if the workflow is active

isWorkflowActive(string $context) : boolean

Arguments

$context

stringThe context of the workflow

Response

boolean

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(string $functionality, string $context) : boolean

Arguments

$functionality

stringThe functionality

$context

stringThe context of the functionality

Response

boolean