Skip to content
Snippets Groups Projects
Commit a44b8858 authored by catch's avatar catch
Browse files

Issue #3260219 by trackleft2, smustgrave, joegraduate, mikelutz: Allow...

Issue #3260219 by trackleft2, smustgrave, joegraduate, mikelutz: Allow migrating <none> <button> url special menu items and empty string
parent 3b90a561
Branches
Tags
4 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #456449 passed with warnings
Pipeline: drupal

#456460

    Pipeline: drupal

    #456455

      Pipeline: drupal

      #456452

        ......@@ -93,9 +93,12 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
        if ($path == '<front>') {
        $path = '';
        }
        elseif ($path == '<nolink>') {
        elseif (empty($path) || in_array($path, ['<nolink>', '<none>'])) {
        return 'route:<nolink>';
        }
        elseif ($path == '<button>') {
        return 'route:<button>';
        }
        $path = 'internal:/' . $path;
        // Convert entity URIs to the entity scheme, if the path matches a route
        ......
        ......@@ -73,10 +73,22 @@ public static function providerTestRouted() {
        $expected = 'internal:/';
        $tests['front'] = [$value, $expected];
        $value = '';
        $expected = 'route:<nolink>';
        $tests['empty'] = [$value, $expected];
        $value = '<none>';
        $expected = 'route:<nolink>';
        $tests['none'] = [$value, $expected];
        $value = '<nolink>';
        $expected = 'route:<nolink>';
        $tests['nolink'] = [$value, $expected];
        $value = '<button>';
        $expected = 'route:<button>';
        $tests['button'] = [$value, $expected];
        return $tests;
        }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment