WorkflowServiceTrait

Trait for component workflow service.

since

4.0.0

package

Application

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) : bool
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

\Joomla\CMS\MVC\Factory\MVCFactoryInterface

isFunctionalityUsed

Check if the functionality is used by a plugin

isFunctionalityUsed(string functionality, string extension) : bool
throws

\Exception

since

4.0.0

Arguments

functionality

stringThe functionality

extension

stringThe extension

Response

bool

isWorkflowActive

Check if the workflow is active

isWorkflowActive(string context) : bool

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

Arguments

functionality

stringThe functionality

context

stringThe context of the functionality

Response

bool