Replace link with route in menu Item
This commit is contained in:
parent
eb79fbf0ea
commit
b13defed11
1 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ class Item
|
||||||
{
|
{
|
||||||
protected $id;
|
protected $id;
|
||||||
protected $icon;
|
protected $icon;
|
||||||
protected $link;
|
protected $route;
|
||||||
protected $label;
|
protected $label;
|
||||||
protected $children;
|
protected $children;
|
||||||
protected $selected;
|
protected $selected;
|
||||||
|
|
@ -17,7 +17,7 @@ class Item
|
||||||
{
|
{
|
||||||
$this->id = '';
|
$this->id = '';
|
||||||
$this->icon = null;
|
$this->icon = null;
|
||||||
$this->link = null;
|
$this->route = null;
|
||||||
$this->label = '';
|
$this->label = '';
|
||||||
$this->children = [];
|
$this->children = [];
|
||||||
$this->selected = false;
|
$this->selected = false;
|
||||||
|
|
@ -38,9 +38,9 @@ class Item
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setLink($link)
|
public function setRoute($route)
|
||||||
{
|
{
|
||||||
$this->link = $link;
|
$this->route = $route;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,9 +99,9 @@ class Item
|
||||||
return $this->icon;
|
return $this->icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLink()
|
public function getRoute()
|
||||||
{
|
{
|
||||||
return $this->link;
|
return $this->route;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLabel()
|
public function getLabel()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue