Get \Drupal\views\Plugin\views\display\Feed::attachTo in line with \Drupal\views\Plugin\views\display\DisplayPluginInterface::attachTo

Created on 23 April 2013, about 12 years ago
Updated 17 September 2023, almost 2 years ago

At one point back in the PHP4 days, views went out of its way to unset everything about a view when it was done with it.

The only remaining spot can be found in \Drupal\views\Plugin\views\display\Feed::attachTo, let's clean up that method so it is in line with its interface and no longer does a destroy on a passed object

Original issue about $this->view->destroy();

At one point back in the PHP4 days, views went out of its way to unset everything about a view when it was done with it.

Now that is less important, and it actually is harmful since it resets ViewExecutable::$displayHandlers each time.

However, none of this matters until #1885830: Enable static caching for config entities goes in, since each View on a page is a different object!

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Views 

Last updated about 23 hours ago

Created by

🇺🇸United States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

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.

Production build 0.71.5 2024