forked from ryanmitchell/ti-ext-ordersummary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtension.php
More file actions
46 lines (40 loc) · 1.13 KB
/
Copy pathExtension.php
File metadata and controls
46 lines (40 loc) · 1.13 KB
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
<?php namespace Thoughtco\Ordersummary;
use DB;
use Event;
use Admin\Widgets\Form;
use System\Classes\BaseExtension;
use Thoughtco\Irtouch\Models\Settings;
use Thoughtco\Irtouch\Classes\LocationRequest;
use Thoughtco\Irtouch\Resources\TouchJsonClient;
class Extension extends BaseExtension
{
public function boot()
{
}
public function registerPermissions()
{
return [
'Thoughtco.Ordersummary.View' => [
'description' => 'View order summary',
'group' => 'module',
],
];
}
public function registerNavigation()
{
return [
'sales' => [
'child' => [
'ordersummary' => [
'priority' => 10,
'class' => 'pages',
'href' => admin_url('thoughtco/ordersummary/summary'),
'title' => lang('lang:thoughtco.ordersummary::default.text_title'),
'permission' => 'Thoughtco.Ordersummary.View',
],
],
],
];
}
}
?>