function WorkflowTypeBase::workflowHasData
Determines if the workflow is being has data associated with it.
@internal Marked as internal until it's validated this should form part of the public API in https://www.drupal.org/node/2897148.
Parameters
\Drupal\workflows\WorkflowInterface $workflow: The workflow to check.
Return value
bool TRUE if the workflow is being used, FALSE if not.
Overrides WorkflowTypeInterface::workflowHasData
1 method overrides WorkflowTypeBase::workflowHasData()
- ContentModeration::workflowHasData in core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModeration.php - Determines if the workflow is being has data associated with it.
File
-
core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php, line 49
Class
- WorkflowTypeBase
- A base class for Workflow type plugins.
Namespace
Drupal\workflows\PluginCode
public function workflowHasData(WorkflowInterface $workflow) {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.