diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php index 703ff02..dcb6273 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php @@ -201,10 +201,13 @@ public function render() { /** * Gets a list of displays included in the view. * + * @param \Drupal\Core\Entity\EntityInterface $view + * The view entity instance to get a list of displays for. + * * @return array * An array of display types that this view includes. */ - protected function getDisplaysList($view) { + protected function getDisplaysList(EntityInterface $view) { $displays = array(); foreach ($view->get('display') as $display) { $definition = $this->displayManager->getDefinition($display['display_plugin']);