Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We can register a views.exectuable service in the container that uses a primitive factory class to return the a ViewExecutable instance. This could then be easily swapped out if people want to do that. For example, you could create a wrapper around the current ViewExectuble class to monitor and collect more performance data.
Comment | File | Size | Author |
---|---|---|---|
#7 | 1898926-7.patch | 4.79 KB | damiankloip |
#7 | interdiff.txt | 1.17 KB | damiankloip |
#6 | 1898926-6.patch | 4.8 KB | damiankloip |
#6 | interdiff.txt | 1.23 KB | damiankloip |
#5 | 1898926-5.patch | 3.56 KB | damiankloip |
Comments
Comment #1
tim.plunkettThis is a great idea. It's nice to get rid of that unnecessary hard dependency, and I can imagine this being useful in custom code.
Comment #3
damiankloip CreditAttribution: damiankloip commentedOops, thought I added that back in, must have forgot to save!
Comment #4
dawehnerNitpick: Missing "\"
Comment #5
damiankloip CreditAttribution: damiankloip commentedDamn you, dawehner ;)
Comment #6
damiankloip CreditAttribution: damiankloip commentedWith a couple of unit tests too. What do you think?
Comment #7
damiankloip CreditAttribution: damiankloip commentedWhat a noisy issue, sorry. Now using $this->container in the test and fixed the typos.
Comment #8
dawehnerI trust english people here, even they have some disagreements with the americans about certain aspects of the language :)
There should be some kind of naming standard for factories in the container (config.factory vs. queue) but yeah this is no critique on that patch.
I trust english people here, even they have some disagreements with the americans about certain aspects of the language :)
Comment #9
webchickCommitted and pushed to 8.x. Thanks!