diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module index 31289d5..84c0b97 100644 --- a/core/modules/overlay/overlay.module +++ b/core/modules/overlay/overlay.module @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Drupal\block\Plugin\Core\Entity\Block; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\user\UserInterface; /** * Implements hook_help(). @@ -455,7 +455,7 @@ function theme_overlay_disable_message($variables) { /** * Implements hook_block_access(). */ -function overlay_block_access(Block $block, $operation, User $account, $langcode) { +function overlay_block_access(Block $block, $operation, UserInterface $account, $langcode) { // If we are limiting rendering to a subset of page regions, hide all blocks // which appear in regions not on that list. Note that overlay_page_alter() // does a more comprehensive job of preventing unwanted regions from being