private function insertMenuObject($slug, $callback, $object)
    {
        $object->slug = $this->snakeName($slug);
        $object->menu = $this->getMenu();

        call_user_func($callback, $object);

        if (! $object->insert) {
            $this->links[] = $object;
        }
    }
private function insertMenuObject($slug, $callback, $object)
    {
        $object->slug = $this->snakeName($slug);
        $object->menu = $this->getMenu();

        call_user_func($callback, $object);

        if (! $object->insert) {
            $this->links[] = $object;
        }
    }
private function insertMenuObject ( $ slug , $ callback , $ object ) { $ object -> slug = $ this -> snakeName ( $ slug ) ; $ object -> menu = $ this -> getMenu ( ) ; call_user_func ( $ callback , $ object ) ; if ( ! $ object -> insert ) { $ this -> links [ ] = $ object ; } }
Insert an object into the menu

@param $slug
@param $callback
@param $object
Insert an object into the menu