massive custom modules and themes D11 compatibility
This commit is contained in:
@@ -11,7 +11,7 @@ use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Drupal\Core\Cache\CacheableJsonResponse;
|
||||
use Drupal\Core\Cache\CacheableMetadata;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\core\render\RenderContext;
|
||||
use Drupal\Core\Render\RenderContext;
|
||||
|
||||
/**
|
||||
* Class AjaxHomeController.
|
||||
|
||||
+1
-2
@@ -8,7 +8,6 @@ use Drupal\Core\Field\FieldItemList;
|
||||
use Drupal\Core\TypedData\TypedDataInterface;
|
||||
use Drupal\Core\Field\BaseFieldDefinition;
|
||||
use Drupal\Core\TypedData\ComputedItemListTrait;
|
||||
use Drupal\workflow\Entity\WorkflowManager;
|
||||
|
||||
|
||||
// https://www.drupal.org/node/2112677
|
||||
@@ -49,7 +48,7 @@ class ComputedShowroomsReferences extends EntityReferenceFieldItemList
|
||||
$i=0;
|
||||
foreach ($tids as $tid) {
|
||||
$term = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->load($tid);
|
||||
$sid = WorkflowManager::getCurrentStateId($term, 'field_workflow');
|
||||
$sid = workflow_node_current_state($term, 'field_workflow');
|
||||
if($sid != 'workflow_visible') continue;
|
||||
$this->list[$i] = $this->createItem($i, $tid);
|
||||
$i++;
|
||||
|
||||
Reference in New Issue
Block a user