-
Notifications
You must be signed in to change notification settings - Fork 27
/
MakeSubmissionBlockPlugin.php
51 lines (45 loc) · 1.19 KB
/
MakeSubmissionBlockPlugin.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @file plugins/blocks/makeSubmission/MakeSubmissionBlockPlugin.php
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class MakeSubmissionBlockPlugin
* @ingroup plugins_blocks_makeSubmission
*
* @brief Class for the "Make a Submission" block plugin
*/
namespace APP\plugins\blocks\makeSubmission;
use PKP\plugins\BlockPlugin;
class MakeSubmissionBlockPlugin extends BlockPlugin
{
/**
* Get the display name of this plugin.
*/
public function getDisplayName(): string
{
return __('plugins.block.makeSubmission.displayName');
}
/**
* Get a description of the plugin.
*/
public function getDescription(): string
{
return __('plugins.block.makeSubmission.description');
}
/**
* @copydoc BlockPlugin::getContents()
*
* @param null|mixed $request
*/
public function getContents($templateMgr, $request = null)
{
$context = $request->getContext();
if (!$context) {
return '';
}
return parent::getContents($templateMgr);
}
}