Completed
Push — feature/ss4-upgrade ( f41a3f )
by
unknown
10:12
created

SubmitAddonController::Title()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SilverStripe\Addons\Controllers;
4
5
use SilverStripe\Control\Controller;
6
use SilverStripe\Control\Director;
7
8
/**
9
 * Instructions on how to submit a module.
10
 * Doesn't actually handle the submission itself,
11
 * that's left to packagist.org.
12
 */
13
class SubmitAddonController extends SiteController 
14
{
15
16
	private static $allowed_actions = [
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
17
		'index',
18
	];
19
20
	public function index() 
21
	{
22
		return $this->renderWith(array('SubmitAddon', 'Page'));
23
	}
24
25
	public function Title() 
26
	{
27
		return 'Submit';
28
	}
29
30
	public function Link() 
31
	{
32
		return Controller::join_links(Director::baseURL(), 'submit');
33
	}
34
35
	public function MenuItemType() 
36
	{
37
		return 'button';
38
	}
39
40
}
41