mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 10:09:58 +00:00
35 lines
566 B
PHP
35 lines
566 B
PHP
<?php
|
|
|
|
namespace BookStack\View;
|
|
|
|
abstract class ViewBlock implements ViewBlockInterface
|
|
{
|
|
protected string $id;
|
|
protected string $view;
|
|
protected string $labelTranslationKey;
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getId(): string
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getView(array $viewData): string
|
|
{
|
|
return $this->view;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getLabel(): string
|
|
{
|
|
return trans($this->labelTranslationKey);
|
|
}
|
|
}
|