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.
When I worked on #1439838: Views support I saw that views doesn't pass the instance. The attached patch adds the instance to the handler.
Comment | File | Size | Author |
---|---|---|---|
#6 | views-pass_field_instance-1741216-6.patch | 2.27 KB | yannickoo |
#5 | views-pass_field_instance-1741216-5.patch | 1.6 KB | yannickoo |
#3 | views-pass_field_instance-1741216-3.patch | 1.65 KB | yannickoo |
#1 | views-pass_field_instance-1741216-1.patch | 1.32 KB | yannickoo |
Comments
Comment #1
yannickooComment #2
dawehnerIt would be cool if you could document the $this->instance variable on the actual class.
Comment #3
yannickooSo, just updated the patch, included the documentation and the patch from #1741242: Replace _dummy view mode with _custom. BTW don't forget to attribute authorship ;)
Comment #4
dawehnerBased on the recent update you did with the _dummy change this patch does not apply anymore.
This should you to remember to keep patches seperated.
Comment #5
yannickooAnd updated the patch again...
Comment #6
yannickooI removed the one blank line and added a blank line to the other variable documentations.
Comment #7
dawehnerThis looks fine as well, so let's get this in. Committed to 8/7.x-3.x