Back to Joomla project (class list)

Class WorkflowServiceTrait - list of methods

Trait for component workflow service.
Package: Joomla\CMS\Workflow
Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Workflow/WorkflowServiceTrait.php
Project: Joomla

Method Summary

public \Joomla\CMS\MVC\Factory\MVCFactoryInterface
()

Get a MVC factory
Returns
  • \Joomla\CMS\MVC\Factory\MVCFactoryInterface
Since
  • 4.0.0
Show source code of this method: getMVCFactory Source Code

public bool
(mixed $functionality, mixed $context)

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', ], ]
Parameters
  • string $functionality The functionality
  • string $context The context of the functionality
Returns
  • bool
Show source code of this method: supportFunctionality Source Code

public bool
(mixed $functionality, mixed $extension)

Check if the functionality is used by a plugin
Parameters
  • string $functionality The functionality
  • string $extension The extension
Returns
  • bool
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: isFunctionalityUsed Source Code

public bool
(mixed $context)

Returns the model name, based on the context
Parameters
  • string $context The context of the workflow
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: getModelName Source Code

public static array
(string $extension)

Returns an array of possible conditions for the component.
Parameters
  • string $extension The component and section separated by ".".
Returns
  • array
Since
  • 4.0.0
Show source code of this method: getConditions Source Code

public bool
(mixed $context)

Check if the workflow is active
Parameters
  • string $context The context of the workflow
Returns
  • bool
Show source code of this method: isWorkflowActive Source Code

Tags Summary

Since
4.0.0