Skip to content

Commit

Permalink
Add the block title/description back, and wrap up the themed element.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed May 30, 2023
1 parent 6804242 commit 1b1c312
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Plugin/Block/MiradorBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ public function build() {
$manifest_url = $this->token->replace($this->configuration['iiif_manifest_url'], ['node' => $node]);
$id = 'mirador_' . $node->id();
$build = [
//"#title" => $this->t('Mirador Viewer'),
//"#description" => $this->t("A div for mirador viewer"),
"#theme" => "mirador",
'#mirador_view_id' => $id,
'#iiif_manifest_url' => $manifest_url,
"#title" => $this->t('Mirador Viewer'),
"#description" => $this->t("A div for mirador viewer"),
'viewer' => [
"#theme" => "mirador",
'#mirador_view_id' => $id,
'#iiif_manifest_url' => $manifest_url,
],
];

return $build;
Expand Down

0 comments on commit 1b1c312

Please sign in to comment.