🇧🇪Belgium mgoubert
You configure it on the block.
🇧🇪Belgium mgoubert
In our case it was more useful to keep the paragraph publish option as set on de workspace staging environment:
Patchode:
Index: modules/workspaces/src/EntityOperations.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/modules/workspaces/src/EntityOperations.php b/modules/workspaces/src/EntityOperations.php
--- a/modules/workspaces/src/EntityOperations.php
+++ b/modules/workspaces/src/EntityOperations.php (date 1695131137587)
@@ -149,12 +149,15 @@
// - An unpublished default revision in the default ('live') workspace.
// - A published pending revision in the current workspace.
if ($entity->isNew() && $entity->isPublished()) {
- // Keep track of the publishing status in a dynamic property for
- // ::entityInsert(), then unpublish the default revision.
- // @todo Remove this dynamic property once we have an API for associating
- // temporary data with an entity: https://www.drupal.org/node/2896474.
- $entity->_initialPublished = TRUE;
- $entity->setUnpublished();
+ // Custom patch
+ if ($entity->getEntityType()->id() != 'paragraph') {
+ // Keep track of the publishing status in a dynamic property for
+ // ::entityInsert(), then unpublish the default revision.
+ // @todo Remove this dynamic property once we have an API for associating
+ // temporary data with an entity: https://www.drupal.org/node/2896474.
+ $entity->_initialPublished = TRUE;
+ $entity->setUnpublished();
+ }
}
}