You are here

public function WorkflowTypeInterface::workflowHasData in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::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.

1 method overrides WorkflowTypeInterface::workflowHasData()
WorkflowTypeBase::workflowHasData in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Determines if the workflow is being has data associated with it.

File

core/modules/workflows/src/WorkflowTypeInterface.php, line 42

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function workflowHasData(WorkflowInterface $workflow);