File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ class Publish implements JobInterface
6868 */
6969 protected ControllerContextFactory $ controllerContextFactory ;
7070
71+ /**
72+ * @var array
73+ * @Flow\InjectConfiguration(path="", package="Neos.Neos.Ui")
74+ */
75+ protected array $ neosUiSettings = [];
76+
7177 public function __construct (
7278 string $ jobIdentifier ,
7379 array $ nodeContextPaths ,
@@ -159,7 +165,7 @@ private function publish(): void
159165 $ this ->publishingService ->publishNode ($ node , $ targetWorkspace );
160166
161167 if ($ node ->getNodeType ()->isAggregate ()) {
162- $ updateNodePreviewUrl = new UpdateNodePreviewUrl ();
168+ $ updateNodePreviewUrl = new UpdateNodePreviewUrl ($ this -> neosUiSettings [ ' nextVersionPreviewBehavior ' ] ?? false );
163169 $ updateNodePreviewUrl ->setNode ($ node );
164170 $ this ->feedbackCollection ->add ($ updateNodePreviewUrl );
165171 }
You can’t perform that action at this time.
0 commit comments