AccessInterface

An access check service determines access rules for particular routes. Hierarchy interface \Drupal\Core\Routing\Access\AccessInterface File core/lib/Drupal/Core/Routing/Access/AccessInterface.php, line 8 Namespace Drupal\Core\Routing\Access Members

AccessibleInterface::access

public AccessibleInterface::access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) Checks data value access. Parameters string $operation: The operation to be performed. \Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL. bool $return_as_object: (optional) Defaults to FALSE. Return value bool|\Drupal\Core\Access\AccessResultInterface The access result. Returns a

AccessibleInterface

Interface for checking access. Hierarchy interface \Drupal\Core\Access\AccessibleInterface Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Access/AccessibleInterface.php, line 12 Namespace Drupal\Core\Access Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access.

AccessException

An exception thrown for access errors. Examples could be invalid access callback return values, or invalid access objects being used. Hierarchy class \Drupal\Core\Access\AccessException extends \RuntimeException File core/lib/Drupal/Core/Access/AccessException.php, line 11 Namespace Drupal\Core\Access Members

AccessDeniedSubscriber::__construct

public AccessDeniedSubscriber::__construct(AccountInterface $account, UrlGeneratorInterface $url_generator) Constructs a new redirect subscriber. Parameters \Drupal\Core\Session\AccountInterface $account: The current user. \Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator. File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 41 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Cod

AccessDeniedSubscriber::onException

public AccessDeniedSubscriber::onException(GetResponseForExceptionEvent $event) Redirects users when access is denied. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 52 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Code public function onException(GetResponseForExceptionEvent $event) { $exce

AccessDeniedSubscriber::getSubscribedEvents

public static AccessDeniedSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)

AccessDeniedSubscriber::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 31 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Code protected $account;

AccessDeniedSubscriber

Redirects users when access is denied. Anonymous users are taken to the login page when attempting to access the user profile pages. Authenticated users are redirected from the login form to their profile page and from the user registration form to their profile edit form. Hierarchy class \Drupal\user\EventSubscriber\AccessDeniedSubscriber implements EventSubscriberInterface uses UrlGeneratorTrait File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 22 Namespace Dr

AccessCheckInterface::applies

public AccessCheckInterface::applies(Route $route) Declares whether the access check applies to a specific route or not. Parameters \Symfony\Component\Routing\Route $route: The route to consider attaching to. Return value array An array of route requirement keys this access checker applies to. File core/lib/Drupal/Core/Access/AccessCheckInterface.php, line 22 Class AccessCheckInterface An access check service determines access rules for particular routes. Namespace Drupal\Core\Access