From 7466a7e40b1d7edd9b74e3fc44ae3dbc4726759f Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Thu, 7 Nov 2024 22:57:10 +0100 Subject: [PATCH] Issue #43: Add trailing comma. --- collabora_online.module | 78 ++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/collabora_online.module b/collabora_online.module index 61662aad..8ae5bd8f 100644 --- a/collabora_online.module +++ b/collabora_online.module @@ -32,44 +32,44 @@ use Drupal\media\MediaInterface; */ function collabora_online_theme($existing, $type, $theme, $path) { - return [ - 'collabora_online' => [ - 'render element' => 'children', - 'template' => 'collabora-online', - 'variables' => [ - 'accessToken' => 'test', - 'accessTokenTtl' => '86400', - 'iFrameStyle' => 'width:95%;', - 'closebutton' => '', - 'allowfullscreen' => '', - 'wopiSrc' => 'http://localhost:9980/', - 'wopiClient' => 'https://localhost:9980/', - ], - ], - // This is the template for the field preview. - 'collabora_online_preview' => [ - 'render element' => 'children', - 'template' => 'collabora-online-preview', - 'variables' => [ - 'editorUrl' => 'about:blank', - 'fileName' => '', - ], - ], - // This is the template for the complete page with embedding. - 'collabora_online_full' => [ - 'template' => 'collabora-online-full', - 'variables' => [ - 'accessToken' => 'test', - 'accessTokenTtl' => '86400', - 'iFrameStyle' => '', - 'closebutton' => '', - 'allowfullscreen' => '', - 'wopiSrc' => '/wopi/files/123', - 'wopiClient' => 'https://localhost:9980/', - ], - 'file' => 'collabora_online.theme.inc', - ], - ]; + return [ + 'collabora_online' => [ + 'render element' => 'children', + 'template' => 'collabora-online', + 'variables' => [ + 'accessToken' => 'test', + 'accessTokenTtl' => '86400', + 'iFrameStyle' => 'width:95%;', + 'closebutton' => '', + 'allowfullscreen' => '', + 'wopiSrc' => 'http://localhost:9980/', + 'wopiClient' => 'https://localhost:9980/', + ], + ], + // This is the template for the field preview. + 'collabora_online_preview' => [ + 'render element' => 'children', + 'template' => 'collabora-online-preview', + 'variables' => [ + 'editorUrl' => 'about:blank', + 'fileName' => '', + ], + ], + // This is the template for the complete page with embedding. + 'collabora_online_full' => [ + 'template' => 'collabora-online-full', + 'variables' => [ + 'accessToken' => 'test', + 'accessTokenTtl' => '86400', + 'iFrameStyle' => '', + 'closebutton' => '', + 'allowfullscreen' => '', + 'wopiSrc' => '/wopi/files/123', + 'wopiClient' => 'https://localhost:9980/', + ], + 'file' => 'collabora_online.theme.inc', + ], + ]; } /** @@ -102,7 +102,7 @@ function collabora_online_entity_operation(EntityInterface $entity) { 'collabora_online_view' => [ 'title' => t("View in Collabora Online"), 'weight' => 50, - 'url' => CoolUtils::getEditorUrl($media, FALSE), + 'url' => CoolUtils::getEditorUrl($media, false), ], ];