Skip to content
Snippets Groups Projects
Commit ac12f5ac authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3511999: Introduce class WorkflowTargetEntity - move...

Issue #3511999: Introduce class WorkflowTargetEntity - move WorkflowManager::showWidget to WorkflowTransitionElement
parent 93fe59f7
No related branches found
No related tags found
No related merge requests found
Pipeline #444795 canceled
......@@ -8,7 +8,7 @@ use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\workflow\Entity\WorkflowManager;
use Drupal\workflow\Element\WorkflowTransitionElement;
use Drupal\workflow\Entity\WorkflowState;
use Drupal\workflow\Entity\WorkflowTargetEntity;
use Drupal\workflow\Form\WorkflowTransitionForm;
......@@ -149,7 +149,7 @@ class WorkflowDefaultFormatter extends FormatterBase implements ContainerFactory
// Only build form if user has possible target state(s).
$transition = $entity->{$field_name}->first()->getTransition();
if (!WorkflowManager::showWidget($transition)) {
if (!WorkflowTransitionElement::showWidget($transition)) {
return $elements;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment