massive custom modules and themes D11 compatibility
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: Materio Samples
|
||||
type: module
|
||||
description: "Provide a sample field, each showroom (taxonomy term) can fill it's own sample reference, and only it's own"
|
||||
core_version_requirement: ^8.8 || ^9.2 || ^10.2
|
||||
core_version_requirement: ^8.8 || ^9.2 || ^10.2 || ^11
|
||||
package: Materio
|
||||
dependencies:
|
||||
- taxonomy
|
||||
|
||||
+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