luminary.panels.ngx and luminary.panels.db hack around the include_helper(...) method to provide what essentially amounts to behavior that could be more-elegantly provided in a before_render() method built into luminary.panels.base.
So far, this has only been used to fetch some type of data to be set as the panel's subtitle. Are there any other reasons to implement a before_render panel method? Should title and subtitle be implemented as methods instead (that way actions can be taken to dynamically set (sub)titles)? Or titles/subtitles could be allowed to be either a string or function, and behavior could be determined by type? Think on this...
luminary.panels.ngxandluminary.panels.dbhack around theinclude_helper(...)method to provide what essentially amounts to behavior that could be more-elegantly provided in abefore_render()method built intoluminary.panels.base.So far, this has only been used to fetch some type of data to be set as the panel's subtitle. Are there any other reasons to implement a
before_renderpanel method? Should title and subtitle be implemented as methods instead (that way actions can be taken to dynamically set (sub)titles)? Or titles/subtitles could be allowed to be either a string or function, and behavior could be determined by type? Think on this...