1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-10-23 06:49:01 +03:00
Files
bookstack/app/View/SimpleViewBlock.php
Dan Brown 97fe7cca9d View Blocks: Added base implementation class
Also removed unused imports from app/ classes.
2026-09-21 13:03:18 +01:00

35 lines
605 B
PHP

<?php
namespace BookStack\View;
abstract class SimpleViewBlock extends BaseViewBlock
{
protected static string $id;
protected static string $view;
protected static string $labelTranslationKey;
/**
* @inheritDoc
*/
public static function getId(): string
{
return static::$id;
}
/**
* @inheritDoc
*/
public static function getLabel(): string
{
return trans(static::$labelTranslationKey);
}
/**
* @inheritDoc
*/
public function getView(array $viewData): string
{
return static::$view;
}
}