diff --git a/stubs/Drupal/Core/Url.stub b/stubs/Drupal/Core/Url.stub index fa955452..c15bbd47 100644 --- a/stubs/Drupal/Core/Url.stub +++ b/stubs/Drupal/Core/Url.stub @@ -11,5 +11,11 @@ class Url implements TrustedCallbackInterface { */ public function toString(bool $collect_bubbleable_metadata = FALSE) { } + + /** + * @return ($return_as_object ? \Drupal\Core\Access\AccessResultInterface : bool) + */ + public function access(?\Drupal\Core\Session\AccountInterface $account = NULL, bool $return_as_object = FALSE): \Drupal\Core\Access\AccessResultInterface|bool { + } }