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

Juyal Ji created an issue. See original summary.

cilefen’s picture

You need a use Drupal\views\ViewExecutable; statement in the file with the hook implementation.

shobhit_juyal’s picture

Okay,
thank you for your guidance. I should close this issue now.

shobhit_juyal’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.