protected function enrichConfiguredPresenceData(MenuPresenceInterface $presence)
    {
        if ( ! $presence->type()) {

            // If type is not set, it should be determined by the action or html value set
            if ($presence->action()) {

                if ($this->isStringUrl($presence->action())) {
                    $presence->type = MenuPresenceType::LINK;
                } else {
                    $presence->type = MenuPresenceType::ACTION;
                }
            }
        }
    }