diff -u b/core/lib/Drupal/Core/Routing/Access/AccessInterface.php b/core/lib/Drupal/Core/Routing/Access/AccessInterface.php --- b/core/lib/Drupal/Core/Routing/Access/AccessInterface.php +++ b/core/lib/Drupal/Core/Routing/Access/AccessInterface.php @@ -24,10 +24,8 @@ * @param \Symfony\Component\HttpFoundation\Request $request * The request object. * - * @return mixed - * TRUE if access is allowed. - * FALSE if not. - * NULL if no opinion. + * @return bool|null + * self::ALLOW, self::DENY, or self::KILL. */ public function access(Route $route, Request $request); only in patch2: unchanged: --- /dev/null +++ b/core/lib/Drupal/Core/Access/AccessibleInterface.php @@ -0,0 +1,31 @@ +createInstance($plugin_id)->access('view', $account); } return TRUE; only in patch2: unchanged: --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php @@ -9,7 +9,7 @@ use Drupal\Core\Language\Language; use Drupal\Core\Session\AccountInterface; -use Drupal\Core\TypedData\AccessibleInterface; +use Drupal\Core\Access\AccessibleInterface; use Drupal\Core\Entity\EntityAccessController; /** only in patch2: unchanged: --- a/core/modules/user/lib/Drupal/user/Plugin/Search/UserSearch.php +++ b/core/modules/user/lib/Drupal/user/Plugin/Search/UserSearch.php @@ -12,7 +12,7 @@ use Drupal\Core\Entity\EntityManager; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Session\AccountInterface; -use Drupal\Core\TypedData\AccessibleInterface; +use Drupal\Core\Access\AccessibleInterface; use Drupal\search\Annotation\SearchPlugin; use Drupal\search\Plugin\SearchPluginBase; use Symfony\Component\DependencyInjection\ContainerInterface;