Inpsyde\MultilingualPress\Common\Admin\SettingsPage::get_action PHP Method

get_action() private method

Returns the action for registering the page.
private get_action ( ) : string.
return string.
    private function get_action()
    {
        switch ($this->admin) {
            case self::ADMIN_NETWORK:
                return 'network_admin_menu';
            case self::ADMIN_SITE:
                return 'admin_menu';
            case self::ADMIN_USER:
                return 'user_admin_menu';
        }
        return '';
    }