Ads slot name load in reverse order.

Created on 18 December 2016, over 7 years ago
Updated 14 April 2023, about 1 year ago

Hello,

I'm working with this module and I'm quite confuse how and why the tags load in reverse order.

I'm trying to debug it but is quite confuse, I'm debugging the file DfpHtmlResponseAttachmentsProcessor.php and the function processAttachments() thrown them in reverse order.

My machine names are like, button_1, button_2 ... button_10, outsider_1, outsider_2 .... outsider_20.

They load, outsider_20, outsider_19 ... outsider_1.

I've BigPipe enabled, Drupal 8.2.4 latest dev version of this module.

Inside that function I try to do this test.


Weird order, not like the admin order viewbuild.
\Drupal::entityTypeManager()->getStorage('dfp_tag')->loadMultiple();


Same order as I add them, button_1, button_2 ...
\Drupal::entityTypeManager()->getStorage('dfp_tag')->loadMultiple();

What does the change of the order in different render context?

There is a way to control them? is something that has to do with the Blocks?

πŸ’¬ Support request
Status

Needs review

Version

1.0

Component

Documentation

Created by

πŸ‡ΈπŸ‡ͺSweden killua99

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡΄Colombia jedihe

    This is #6 re-rolled so it applies *after* various patches I'm currently using:

    composer.json (partial):

    {
        "extra": {
            "patches": {
                "drupal/dfp": {
                    "D10 compatibility": "https://www.drupal.org/files/issues/2023-04-13/3296953-dfp-d10-7.patch",
                    "Support sync/async switching": "https://www.drupal.org/files/issues/2023-04-14/dfp-outdated-js-2905298-24--for-3296953-7.patch",
                    "Lazy-loading support": "https://www.drupal.org/files/issues/2021-05-21/3179558-dfp-lazyload-8--for-2905298-17.patch",
                    "Support out-of-page slots": "https://www.drupal.org/files/issues/2022-05-16/dfp-out-of-page-support-2905255-16.patch",
                    "Add slot_id token": "https://www.drupal.org/files/issues/2020-02-25/dfp-slot-id-token-3116037-2.patch",
                    "Add token browser": "https://www.drupal.org/files/issues/2021-05-21/dfp-add-token-browser-2905038-9.patch",
                    "Multiple ads per ad slot": "https://www.drupal.org/files/issues/2022-05-16/dfp-multiple-ads-per-slot-3116576-9--for-2905298-22--2905255-16.patch"
                }   
            }
        }
    }
    
Production build 0.69.0 2024