]> _ Git - fluidbook_tools.git/commitdiff
wait #7180 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Nov 2024 16:03:47 +0000 (17:03 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Nov 2024 16:03:47 +0000 (17:03 +0100)
src/Compiler/CompilerInterface.php
src/Compiler/DummyCompiler.php
src/Links/Link.php

index 46eca635b0d1d2ede000e08542d3b99fc7c1b1c3..2cb83ab4c35c7e74c62af037fd41b1eb0c86968c 100644 (file)
@@ -73,5 +73,5 @@ interface CompilerInterface
 
     public function addIssue($type, $data = []);
 
-    public function addPageBackgroundColor($page, $to);
+    public function addPageBackgroundColor($page, $color,$arrowsColor);
 }
index 7261581108ba34685e14dfde8dce1ab1e4c49e7b..3b48d5f744f917022244f8dc0997d5c301b6907f 100644 (file)
@@ -150,7 +150,7 @@ class DummyCompiler implements CompilerInterface {
         // TODO: Implement addIssue() method.
     }
 
-    public function addPageBackgroundColor($page, $to)
+    public function addPageBackgroundColor($page, $color, $arrowsColor)
     {
         // TODO: Implement addPageBackgroundColor() method.
     }
index 2591d74dea70879b04ff3e7da249f869d9bba363..ec9183788e1a855464d6dc3c524f22e477b38b80 100644 (file)
@@ -321,7 +321,7 @@ class Link
             case static::COPY_TO_CLIPBOARD:
                 return new CopyToClipboardLink($id, $init, $compiler);
             case static::PAGE_BACKGROUND_COLOR:
-                $compiler->addPageBackgroundColor($init['page'], $init['to']);
+                $compiler->addPageBackgroundColor($init['page'], $init['to'] ?? '', $init['extra'] ?? '');
                 break;
             default:
                 return null;