src/Menu/MenuModulesInterpreter.php
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;
                }
            }
        }
    }
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;
                }
            }
        }
    }
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 ; } } } }
Enriches a full, new presence data

@param MenuPresenceInterface|MenuPresence $presence
Enriches a full new presence data