NOTICE: PHP message: TypeError: Argument 1 passed to Drupal\state_machine\Plugin\Field\FieldType\StateItem::Drupal\state_machine\Plugin\Field\FieldType\{closure}() must be an instance of Drupal\state_machine\Plugin\Workflow\WorkflowState
You are able to override the default Workflow class by supplying 'workflow_class' on the Workflow Group configuration.
Within the default class constructor arrays of WorkflowState and WorkflowTransition objects are built and stored. These classes are then strictly type hinted within the Form Field and Event code. This means that if you have the need to extend the WorkflowState or WorkflowTransition classes you have to re-write large portions of the From Field and Event code as well.
Create a WorkflowStateInterface and a WorkflowTransitionInterface that is used by the rest of the module for Type Hinting instead of explicitly requiring objects of WorkflowState or WorkflowTransition.
Needs work
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.