mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 02:01:37 +00:00
24 lines
599 B
PHP
24 lines
599 B
PHP
<?php
|
|
|
|
namespace BookStack\View\ViewBlocks;
|
|
|
|
use BookStack\Entities\Models\Page;
|
|
use BookStack\View\SimpleViewBlock;
|
|
|
|
class PagesShowAttachments extends SimpleViewBlock
|
|
{
|
|
protected static string $id = 'builtin_pages-show-attachments';
|
|
protected static string $view = 'pages.parts.show-sidebar-section-attachments';
|
|
protected static string $labelTranslationKey = 'entities.pages_attachments';
|
|
|
|
public function getViewData(array $viewData): array
|
|
{
|
|
/** @var Page $page */
|
|
$page = $viewData['page'];
|
|
|
|
return [
|
|
'page' => $page,
|
|
];
|
|
}
|
|
}
|