mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 02:01:37 +00:00
21 lines
502 B
PHP
21 lines
502 B
PHP
<?php
|
|
|
|
namespace BookStack\View\ViewBlocks;
|
|
|
|
use BookStack\View\ViewBlock;
|
|
|
|
class HomeActions extends ViewBlock
|
|
{
|
|
protected string $id = 'builtin_home-actions';
|
|
protected string $view = 'home.parts.configured-section-actions';
|
|
protected string $labelTranslationKey = 'common.actions';
|
|
|
|
public function withData(array $viewData): array
|
|
{
|
|
return [
|
|
'view' => $viewData['view'] ?? '',
|
|
'homeView' => $viewData['homeView'] ?? 'default',
|
|
];
|
|
}
|
|
}
|