Problem/Motivation
Views allows to specify a different title in case the view result is empty.
This feature is for example used by "/node" to display "Welcome to Drupal", so it is not just an edge-case feature.
Proposed resolution
As #2359901: Discourage $main_content['#title'] in favor of route titles and title callbacks would have maybe dropped support for it ensure that we have a even more dedicated test coverage for it.
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2359931-8.patch | 3.02 KB | dawehner |
| #5 | interdiff.txt | 579 bytes | dawehner |
| #5 | 2359931-5.patch | 3.08 KB | dawehner |
| #3 | interdiff.txt | 722 bytes | dawehner |
| #3 | 2359931-3.patch | 3.02 KB | dawehner |
Comments
Comment #1
dawehnerHere is an expanded test coverage.
Comment #3
dawehnerThere we go, we changed the test view, so we have to adapt the test as well.
Comment #4
damiankloip commentedNIT ALERT: Can we just add a comment that you are adding this so the view returns no results? pretty please.
Or make the value even more ridiculous?
Comment #5
dawehnerSure ...
Comment #6
damiankloip commentedMuch better. That is a nice value - thanks.
Comment #8
dawehnerOkay, I'm done, I forgot how to write views config by hand :P
Comment #9
alexpottCommitted a6c2d42 and pushed to 8.0.x. Thanks!