]> _ Git - fluidbook_tools.git/commitdiff
wip #7340 @2.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 26 Feb 2025 10:46:50 +0000 (11:46 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 26 Feb 2025 10:46:50 +0000 (11:46 +0100)
src/Compiler/CompilerInterface.php
src/Compiler/DummyCompiler.php
src/Links/Link.php

index 322b3d1e2a57c8c4d752b71939f9a60b9331fd5c..5fe93786b4785836aef2259ba7036c2bf24b4a90 100644 (file)
@@ -73,7 +73,7 @@ interface CompilerInterface
 
     public function addIssue($type, $data = []);
 
-    public function addPageBackgroundColor($page, $color,$arrowsColor);
+    public function addPageBackground($page, $color, $arrowsColor, $image);
 
     public function getExternalMultimediaContents($to);
 }
index f512b20e8d540bd26d85f7e8f65e2e731c76fbf4..644e7c3b57781a529f726960aa07ab3de3aabc05 100644 (file)
@@ -150,7 +150,7 @@ class DummyCompiler implements CompilerInterface {
         // TODO: Implement addIssue() method.
     }
 
-    public function addPageBackgroundColor($page, $color, $arrowsColor)
+    public function addPageBackground($page, $color, $arrowsColor,$image)
     {
         // TODO: Implement addPageBackgroundColor() method.
     }
index 6a6098e2c91fe0a9c70310d20f5bfd233c41d17d..83568fe0fbc6e7cd7b8bf5450e3308f1dec24b15 100644 (file)
@@ -334,7 +334,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'] ?? '', $init['extra'] ?? '');
+                $compiler->addPageBackground($init['page'], $init['to'] ?? '', $init['extra'] ?? '',$init['alternative']??'');
                 break;
             default:
                 return null;