StubProcessor
Processor for working with stubs on admin pages.
Example:
$stubController = new \Bitrix\UI\Admin\Page\StubProcessor();
if ($stubController->isShowStub())
{
$stubController->showStub(
'Stub title',
'Link to new public page'
);
}
Table of Contents
Methods
- addSkippedPage() : void
- Mark the page as skipped and don't show the stub anymore.
- isShowStub() : bool
- Show stub?
- showStub() : void
- Show stub!
Methods
addSkippedPage()
Mark the page as skipped and don't show the stub anymore.
public
addSkippedPage(string $page) : void
Parameters
- $page : string
isShowStub()
Show stub?
public
isShowStub([string|null $page = null ]) : bool
Parameters
- $page : string|null = null
Return values
boolshowStub()
Show stub!
public
showStub(string $title, string|null $linkToNewPage) : void
Parameters
- $title : string
- $linkToNewPage : string|null