Exemple #1
0
 /**
  * Create divider item
  * 
  * @access public
  * @param array $attributes (default: [])
  * @return $this
  */
 public function divider(array $attributes = [])
 {
     $items = $this->get('items');
     $items[] = Divider::make($attributes);
     $this->set('items', $items);
     return $this;
 }
Exemple #2
0
 /**
  * Add divider item tor menu collection
  * 
  * @access public
  * @return $this
  */
 public function divider(array $attributes = [])
 {
     $item = Divider::make($attributes);
     $this->items[] = $item;
     return $this;
 }