Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessCheckInterface.php

interface AccessCheckInterface

An access check service determines access rules for particular routes.

Hierarchy

  • interface \Drupal\Core\Routing\Access\AccessInterface
    • interface \Drupal\Core\Access\AccessCheckInterface extends \Drupal\Core\Routing\Access\AccessInterface

Expanded class hierarchy of AccessCheckInterface

All classes that implement AccessCheckInterface

1 file declares its use of AccessCheckInterface
RegisterAccessChecksPass.php in core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterAccessChecksPass.php

File

core/lib/Drupal/Core/Access/AccessCheckInterface.php, line 11

Namespace

Drupal\Core\Access
View source
interface AccessCheckInterface extends RoutingAccessInterface {
    
    /**
     * Declares whether the access check applies to a specific route or not.
     *
     * @param \Symfony\Component\Routing\Route $route
     *   The route to consider attaching to.
     *
     * @return bool
     *   TRUE if this access checker applies to this route.
     */
    public function applies(Route $route);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
AccessCheckInterface::applies public function Declares whether the access check applies to a specific route or not. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal