FEATURE: *in progress* working on menu widgets
This commit is contained in:
@@ -3,9 +3,9 @@ namespace App\Widgets\Menu;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
use App\Widgets\Contracts\WidgetRenderer;
|
||||
use App\Widgets\Widget;
|
||||
use App\Widgets\NonInstallableWidget;
|
||||
|
||||
class Menu extends Widget
|
||||
class Menu extends NonInstallableWidget
|
||||
{
|
||||
/**
|
||||
* Name getter
|
||||
@@ -14,7 +14,7 @@ class Menu extends Widget
|
||||
*/
|
||||
public static function getName()
|
||||
{
|
||||
return 'widgets/menu.name';
|
||||
return 'widgets/menu.widgetName';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ class Menu extends Widget
|
||||
*/
|
||||
public static function getDescription()
|
||||
{
|
||||
return 'widgets/menu.description';
|
||||
return 'widgets/menu.widgetDescription';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -45,24 +45,6 @@ class Menu extends Widget
|
||||
*/
|
||||
public static function save(\App\Models\Widget $widget, Request $request)
|
||||
{
|
||||
// TODO: Implement save() method.
|
||||
}
|
||||
|
||||
/**
|
||||
* Function for installing given widget
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function install()
|
||||
{
|
||||
// TODO: Implement install() method.
|
||||
}
|
||||
|
||||
/**
|
||||
* Function for uninstalling widget
|
||||
*/
|
||||
public static function uninstall()
|
||||
{
|
||||
// TODO: Implement uninstall() method.
|
||||
return $widget;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user