mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 02:01:37 +00:00
Shows only one homepage option depending on app homepage setting. Only shows center column in editor for supported locations.
35 lines
607 B
PHP
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;
|
|
}
|
|
}
|