massive custom modules and themes D11 compatibility
This commit is contained in:
+1
-2
@@ -6,7 +6,6 @@ use Drupal\Core\Field\FieldItemListInterface;
|
||||
use Drupal\Core\Field\WidgetBase;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\user\Entity\User;
|
||||
use Drupal\workflow\Entity\WorkflowManager;
|
||||
|
||||
/**
|
||||
* Plugin implementation of the 'materio_samples_default_widget' widget.
|
||||
@@ -85,7 +84,7 @@ class SamplesDefaultWidget extends WidgetBase {
|
||||
$delta = 0;
|
||||
foreach ($this->getShowroomTerms() as $term) {
|
||||
$tid = $term->id();
|
||||
$is_hidden = WorkflowManager::getCurrentStateId($term, 'field_workflow') === 'workflow_hidden';
|
||||
$is_hidden = workflow_node_current_state($term, 'field_workflow') === 'workflow_hidden';
|
||||
$location = $locations[$tid] ?? '';
|
||||
|
||||
// Preserve values of workflow-hidden showrooms so a save never drops
|
||||
|
||||
Reference in New Issue
Block a user