public function WorkflowTypeInterface::workflowStateHasData in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::workflowStateHasData()
- 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::workflowStateHasData()
Determines if the workflow state 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.
\Drupal\workflows\StateInterface $state: The workflow state to check.
Return value
bool TRUE if the workflow state is being used, FALSE if not.
File
- core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 58
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function workflowStateHasData(WorkflowInterface $workflow, StateInterface $state);