public function activate()
    {
        if ($this->menu->config->activeElement == 'item') {
            $this->setToActive();
        } else {
            if ($this->link) {
                $this->link->activate();
            }
        }

        // If parent activation is enabled:
        if ($this->menu->config->activateParents) {
            // Moving up through the parent nodes, activating them as well.
            if ($this->parent) {
                $this->parent->activate();
            }
        }
    }