From: Vincent Vanwaelscappel Date: Wed, 26 Feb 2025 10:46:50 +0000 (+0100) Subject: wip #7340 @2.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=89c247280e8e7e2be3ae179f2f387fe7355cbd6a;p=fluidbook_tools.git wip #7340 @2.5 --- diff --git a/src/Compiler/CompilerInterface.php b/src/Compiler/CompilerInterface.php index 322b3d1..5fe9378 100644 --- a/src/Compiler/CompilerInterface.php +++ b/src/Compiler/CompilerInterface.php @@ -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); } diff --git a/src/Compiler/DummyCompiler.php b/src/Compiler/DummyCompiler.php index f512b20..644e7c3 100644 --- a/src/Compiler/DummyCompiler.php +++ b/src/Compiler/DummyCompiler.php @@ -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. } diff --git a/src/Links/Link.php b/src/Links/Link.php index 6a6098e..83568fe 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -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;