Skip to content
Snippets Groups Projects
Verified Commit be3b0198 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2699959 by quietone, dragos-dumi, smustgrave, larowlan, joachim: Update...

Issue #2699959 by quietone, dragos-dumi, smustgrave, larowlan, joachim: Update link templates of test entities
parent 563fc19c
No related branches found
No related tags found
11 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10786Issue #3490579 by shalini_jha, mstrelan: Add void return to all views...,!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2062Issue #3246454: Add weekly granularity to views date sort,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #353878 passed with warnings
Pipeline: drupal

#353919

    Pipeline: drupal

    #353913

      Pipeline: drupal

      #353907

        +4
        Showing
        with 23 additions and 16 deletions
        ......@@ -154,11 +154,7 @@ protected function getAddFormRoute(EntityTypeInterface $entity_type) {
        // If the entity has bundles, we can provide a bundle-specific title
        // and access requirements.
        $expected_parameter = $entity_type->getBundleEntityType() ?: $entity_type->getKey('bundle');
        // @todo We have to check if a route contains a bundle in its path as
        // test entities have inconsistent usage of "add-form" link templates.
        // Fix it in https://www.drupal.org/node/2699959.
        if (($bundle_key = $entity_type->getKey('bundle')) && str_contains($route->getPath(), '{' . $expected_parameter . '}')) {
        if ($bundle_key = $entity_type->getKey('bundle')) {
        $route->setDefault('_title_callback', EntityController::class . '::addBundleTitle');
        // If the bundles are entities themselves, we can add parameter
        // information to the route options.
        ......
        ......@@ -47,7 +47,8 @@
        ],
        links: [
        'canonical' => '/entity_test/{entity_test}',
        'add-form' => '/entity_test/add',
        'add-form' => '/entity_test/add/{type}',
        'add-page' => '/entity_test/add',
        'edit-form' => '/entity_test/manage/{entity_test}/edit',
        'delete-form' => '/entity_test/delete/entity_test/{entity_test}',
        ],
        ......
        ......@@ -32,7 +32,7 @@
        ],
        links: [
        'add-page' => '/entity_test_add_page/{user}/add',
        'add-form' => '/entity_test_add_page/add/{user}/form',
        'add-form' => '/entity_test_add_page/add/{type}/{user}/form',
        ],
        admin_permission: 'administer entity_test content',
        base_table: 'entity_test_add_page',
        ......
        ......@@ -43,7 +43,8 @@
        'views_data' => EntityViewsData::class,
        ],
        links: [
        'add-form' => '/entity_test_mul_changed/add',
        'add-form' => '/entity_test_mul_changed/add/{type}',
        'add-page' => '/entity_test_mul_changed/add',
        'canonical' => '/entity_test_mul_changed/manage/{entity_test_mul_changed}',
        'edit-form' => '/entity_test_mul_changed/manage/{entity_test_mul_changed}/edit',
        'delete-form' => '/entity_test/delete/entity_test_mul_changed/{entity_test_mul_changed}',
        ......
        ......@@ -40,7 +40,8 @@
        ],
        ],
        links: [
        'add-form' => '/entity_test_mul_langcode_key/add',
        'add-form' => '/entity_test_mul_langcode_key/add/{type}',
        'add-page' => '/entity_test_mul_langcode_key/add',
        'canonical' => '/entity_test_mul_langcode_key/manage/{entity_test_mul_langcode_key}',
        'edit-form' => '/entity_test_mul_langcode_key/manage/{entity_test_mul_langcode_key}/edit',
        'delete-form' => '/entity_test/delete/entity_test_mul_langcode_key/{entity_test_mul_langcode_key}',
        ......
        ......@@ -40,7 +40,8 @@
        'route_provider' => ['html' => DefaultHtmlRouteProvider::class],
        ],
        links: [
        'add-form' => '/entity_test_mulrev/add',
        'add-form' => '/entity_test_mulrev/add/{type}',
        'add-page' => '/entity_test_mulrev/add',
        'canonical' => '/entity_test_mulrev/manage/{entity_test_mulrev}',
        'delete-form' => '/entity_test/delete/entity_test_mulrev/{entity_test_mulrev}',
        'edit-form' => '/entity_test_mulrev/manage/{entity_test_mulrev}/edit',
        ......
        ......@@ -42,7 +42,8 @@
        'views_data' => EntityViewsData::class,
        ],
        links: [
        'add-form' => '/entity_test_mulrev_changed/add',
        'add-form' => '/entity_test_mulrev_changed/add/{type}',
        'add-page' => '/entity_test_mulrev_changed/add',
        'canonical' => '/entity_test_mulrev_changed/manage/{entity_test_mulrev_changed}',
        'delete-form' => '/entity_test/delete/entity_test_mulrev_changed/{entity_test_mulrev_changed}',
        'edit-form' => '/entity_test_mulrev_changed/manage/{entity_test_mulrev_changed}/edit',
        ......
        ......@@ -46,7 +46,8 @@
        ],
        ],
        links: [
        'add-form' => '/entity_test_mulrevpub/add',
        'add-form' => '/entity_test_mulrevpub/add/{type}',
        'add-page' => '/entity_test_mulrevpub/add',
        'canonical' => '/entity_test_mulrevpub/manage/{entity_test_mulrevpub}',
        'delete-form' => '/entity_test/delete/entity_test_mulrevpub/{entity_test_mulrevpub}',
        'delete-multiple-form' => '/entity_test/delete',
        ......
        ......@@ -21,7 +21,8 @@
        'storage' => ContentEntityNullStorage::class,
        ],
        links: [
        'add-form' => '/entity_test_no_id/add',
        'add-form' => '/entity_test_no_id/add/{type}',
        'add-page' => '/entity_test_no_id/add',
        ],
        admin_permission: 'administer entity_test content',
        field_ui_base_route: 'entity.entity_test_no_id.admin_form',
        ......
        ......@@ -50,7 +50,8 @@
        ],
        ],
        links: [
        'add-form' => '/entity_test_rev/add',
        'add-form' => '/entity_test_rev/add/{type}',
        'add-page' => '/entity_test_rev/add',
        'canonical' => '/entity_test_rev/manage/{entity_test_rev}',
        'delete-form' => '/entity_test/delete/entity_test_rev/{entity_test_rev}',
        'delete-multiple-form' => '/entity_test_rev/delete_multiple',
        ......
        ......@@ -51,6 +51,7 @@
        ],
        links: [
        'add-form' => '/entity_test_revpub/add',
        'add-page' => '/entity_test_revpub/add/{type}',
        'canonical' => '/entity_test_revpub/manage/{entity_test_revpub}',
        'delete-form' => '/entity_test/delete/entity_test_revpub/{entity_test_revpub}',
        'delete-multiple-form' => '/entity_test_revpub/delete_multiple',
        ......
        ......@@ -35,7 +35,8 @@
        ],
        links: [
        'canonical' => '/entity_test_string_id/manage/{entity_test_string_id}',
        'add-form' => '/entity_test_string_id/add',
        'add-form' => '/entity_test_string_id/add/{type}',
        'add-page' => '/entity_test_string_id/add',
        'edit-form' => '/entity_test_string_id/manage/{entity_test_string_id}',
        ],
        admin_permission: 'administer entity_test content',
        ......
        ......@@ -37,7 +37,8 @@
        * },
        * links = {
        * "canonical" = "/entity_test_uuid_id/manage/{entity_test_uuid_id}",
        * "add-form" = "/entity_test_uuid_id/add",
        * "add-form" = "/entity_test_uuid_id/add/{type}",
        * "add-page" = "/entity_test_uuid_id/add",
        * "edit-form" = "/entity_test_uuid_id/manage/{entity_test_uuid_id}/edit",
        * },
        * )
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment