-
Notifications
You must be signed in to change notification settings - Fork 1
/
Plugin.php
41 lines (36 loc) · 1.34 KB
/
Plugin.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
<?php namespace Shohabbos\RestaurantMenu;
use System\Classes\PluginBase;
use Event;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'shohabbos.restaurantmenu::lang.plugin.name',
'description' => 'shohabbos.restaurantmenu::lang.plugin.description',
'author' => 'Shohabbos Olimjonov',
'icon' => 'icon-columns',
'homepage' => 'https://github.com/shoxabbos/october-restaurant-menu-plugin'
];
}
public function registerComponents()
{
return [
'Shohabbos\RestaurantMenu\Components\Items' => 'menuItems',
'Shohabbos\RestaurantMenu\Components\Categories' => 'menuCategories',
];
}
public function registerSettings()
{
}
public function boot()
{
// \Event::listen('backend.menu.extendItems', function($navigationManager) {
// $navigationManager->removeMainMenuItem('October.System', 'system');
// $navigationManager->removeMainMenuItem('October.backend', 'backend');
// $navigationManager->removeMainMenuItem('October.backend', 'media');
// $navigationManager->removeMainMenuItem('October.cms', 'cms');
// $navigationManager->removeMainMenuItem('Rainlab.Builder', 'builder');
// });
}
}