mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 10:09:58 +00:00
So that their metadata can be read without having to create instances and fullfill dependancy injection just to list. Also added title to interface prefs page.
21 lines
523 B
PHP
21 lines
523 B
PHP
<?php
|
|
|
|
namespace BookStack\View\ViewBlocks;
|
|
|
|
use BookStack\View\ViewBlock;
|
|
|
|
class HomeActions extends ViewBlock
|
|
{
|
|
protected static string $id = 'builtin_home-actions';
|
|
protected static string $view = 'home.parts.configured-section-actions';
|
|
protected static string $labelTranslationKey = 'common.actions';
|
|
|
|
public function withData(array $viewData): array
|
|
{
|
|
return [
|
|
'view' => $viewData['view'] ?? '',
|
|
'homeView' => $viewData['homeView'] ?? 'default',
|
|
];
|
|
}
|
|
}
|