function WorkflowTypeBase::workflowHasData

Same name in other branches
  1. 8.9.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::workflowHasData()
  2. 10 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::workflowHasData()
  3. 11.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::workflowHasData()

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\Plugin

Code

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.