You are here

public function WorkflowTypeBase::workflowStateHasData in Drupal 8

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

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;
}