Files
BookStack/app/View/ViewBlock.php
T

26 lines
430 B
PHP

<?php
namespace BookStack\View;
abstract class ViewBlock implements ViewBlockInterface
{
protected string $view;
protected string $labelTranslationKey;
/**
* @inheritDoc
*/
public function getView(array $viewData): string
{
return $this->view;
}
/**
* @inheritDoc
*/
public function getLabel(): string
{
return trans($this->labelTranslationKey);
}
}