function WorkflowTypeBase::workflowStateHasData

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

Overrides WorkflowTypeInterface::workflowStateHasData

1 method overrides WorkflowTypeBase::workflowStateHasData()
ContentModeration::workflowStateHasData in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Determines if the workflow state has data associated with it.

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 56

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function workflowStateHasData(WorkflowInterface $workflow, StateInterface $state) {
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.