diff -u b/core/modules/views/lib/Drupal/views/Ajax/SetFormCommand.php b/core/modules/views/lib/Drupal/views/Ajax/SetFormCommand.php --- b/core/modules/views/lib/Drupal/views/Ajax/SetFormCommand.php +++ b/core/modules/views/lib/Drupal/views/Ajax/SetFormCommand.php @@ -45,7 +45,7 @@ * @param string $title * The title of the form. * @param string $url - * An optional URL of the form.. + * (optional) An optional URL of the form. */ public function __construct($output, $title, $url = NULL) { $this->output = $output; diff -u b/core/modules/views/views.api.php b/core/modules/views/views.api.php --- b/core/modules/views/views.api.php +++ b/core/modules/views/views.api.php @@ -603,12 +603,12 @@ * * @param array $commands * An array of ajax commands. - * @param \Drupal\views\ViewExecutable|\ViewExecutable $view + * @param \Drupal\views\ViewExecutable $view * The view which is requested. * * @see views_ajax() */ -function hook_views_ajax_data_alter(array &$commands, ViewExecutable $view) { +function hook_views_ajax_data_alter(array &$commands, \Drupal\views\ViewExecutable $view) { // Replace Views' method for scrolling to the top of the element with your // custom scrolling method. foreach ($commands as &$command) {