-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDoomBlockPlugin.php
More file actions
35 lines (27 loc) · 821 Bytes
/
Copy pathDoomBlockPlugin.php
File metadata and controls
35 lines (27 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace APP\plugins\blocks\doom;
use PKP\plugins\BlockPlugin;
class DoomBlockPlugin extends BlockPlugin
{
public function register($category, $path, $mainContextId = null): bool
{
$success = parent::register($category, $path);
return $success;
}
public function getContents($templateMgr, $request = null)
{
$templateMgr->assign('baseUrl', $request->getBaseUrl());
return parent::getContents($templateMgr, $request);
}
public function getDisplayName(): string
{
return __('plugins.blocks.doom.displayName');
}
public function getDescription(): string
{
return __('plugins.blocks.doom.description');
}
}
if (!PKP_STRICT_MODE) {
class_alias('\APP\plugins\blocks\doom\DoomBlockPlugin', '\DoomBlockPlugin');
}