Files
BookStack/app/View/ViewBlocks/PagesShowAttachments.php
T
Dan Brown 97fe7cca9d View Blocks: Added base implementation class
Also removed unused imports from app/ classes.
2026-09-21 13:03:18 +01:00

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,
];
}
}