Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
API page: https://api.drupal.org/api/drupal/core%21modules%21views%21views.api.php...
Enter a descriptive title (above) relating to function hook_views_pre_view, then describe the problem you have found:
The first parameter in this hook is an object of class "ViewExecutable $view" which is correct but it returns a fatal error if used as it is. Therefore, it should be documented as "\Drupal\views\ViewExecutable $view".
Kindly update me if this type of bug report is relevant or not.
Thanks
Shobhit Juyal
Comments
Comment #2
cilefen CreditAttribution: cilefen as a volunteer commentedYou need a
use Drupal\views\ViewExecutable;
statement in the file with the hook implementation.Comment #3
shobhit_juyal CreditAttribution: shobhit_juyal commentedOkay,
thank you for your guidance. I should close this issue now.
Comment #4
shobhit_juyal CreditAttribution: shobhit_juyal commented