mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 02:01:37 +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
501 B
PHP
21 lines
501 B
PHP
<?php
|
|
|
|
namespace BookStack\View\ViewBlocks;
|
|
|
|
use BookStack\View\ViewBlock;
|
|
use Illuminate\Http\Request;
|
|
|
|
class BooksIndexActions extends ViewBlock
|
|
{
|
|
protected static string $id = 'builtin_books-index-actions';
|
|
protected static string $view = 'books.parts.index-sidebar-section-actions';
|
|
protected static string $labelTranslationKey = 'common.actions';
|
|
|
|
public function withData(array $viewData): array
|
|
{
|
|
return [
|
|
'view' => $viewData['view'],
|
|
];
|
|
}
|
|
}
|