Skip to content

Commit

Permalink
Issue CollaboraOnline#43: Add trailing comma.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote authored and AaronGilMartinez committed Nov 25, 2024
1 parent eb19f53 commit 7466a7e
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions collabora_online.module
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
}

/**
Expand Down Expand Up @@ -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),
],
];

Expand Down

0 comments on commit 7466a7e

Please sign in to comment.