|
@@ -8,6 +8,7 @@ namespace Drupal\edlp_corpus\Plugin\Block;
|
|
use Drupal\Core\Block\BlockBase;
|
|
use Drupal\Core\Block\BlockBase;
|
|
use Drupal\Core\Link;
|
|
use Drupal\Core\Link;
|
|
use Drupal\Core\Url;
|
|
use Drupal\Core\Url;
|
|
|
|
+use Drupal\workflow\Entity\WorkflowManager;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Creates a 'Entrees' Block
|
|
* Creates a 'Entrees' Block
|
|
@@ -34,6 +35,10 @@ class BlockEntrees extends BlockBase {
|
|
$tid = $term->id();
|
|
$tid = $term->id();
|
|
$name = $term->getName();
|
|
$name = $term->getName();
|
|
|
|
|
|
|
|
+ // remove masqué
|
|
|
|
+ $sid = WorkflowManager::getCurrentStateId($term, 'field_workflow');
|
|
|
|
+ if($sid == 'generique_masque') continue;
|
|
|
|
+
|
|
$entree = array(
|
|
$entree = array(
|
|
'tid'=>$tid
|
|
'tid'=>$tid
|
|
);
|
|
);
|