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(string extension) : array
since |
4.0.0 |
---|
Arguments
- extension
string
The 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
string
The context of the workflow
Response
bool
getMVCFactory
Get a MVC factory
getMVCFactory() : \Joomla\CMS\MVC\Factory\MVCFactoryInterface
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 |
|
---|---|
since |
4.0.0 |
Arguments
- functionality
string
The functionality- extension
string
The extension
Response
bool
isWorkflowActive
Check if the workflow is active
isWorkflowActive(string context) : bool
Arguments
- context
string
The 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
string
The functionality- context
string
The context of the functionality
Response
bool