Files
BookStack/app/View/ViewBlock.php
T
Dan Brown 404e048588 Layouts: Added reset to default action, made views dynamic
Shows only one homepage option depending on app homepage setting.
Only shows center column in editor for supported locations.
2026-08-16 14:12:30 +01:00

35 lines
607 B
PHP

<?php
namespace BookStack\View;
abstract class ViewBlock implements ViewBlockInterface
{
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;
}
}