You are here

interface AccessCheckerInterface in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 modules/permissions_by_entity/src/Service/AccessCheckerInterface.php \Drupal\permissions_by_entity\Service\AccessCheckerInterface

Interface AccessCheckerInterface.

@package Drupal\permissions_by_entity\Service

Hierarchy

Expanded class hierarchy of AccessCheckerInterface

All classes that implement AccessCheckerInterface

1 file declares its use of AccessCheckerInterface
PermissionsByEntityKernelEventSubscriber.php in modules/permissions_by_entity/src/EventSubscriber/PermissionsByEntityKernelEventSubscriber.php

File

modules/permissions_by_entity/src/Service/AccessCheckerInterface.php, line 12

Namespace

Drupal\permissions_by_entity\Service
View source
interface AccessCheckerInterface {

  /**
   * Checks if a user is allowed to access a fieldable entity.
   *
   * @param \Drupal\Core\Entity\FieldableEntityInterface $entity
   *   A fieldable entity.
   * @param bool|int $uid
   *   (Optional) Defaults to the uid of the current user.
   *
   * @return bool TRUE if access is allowed, otherwise FALSE.
   * TRUE if access is allowed, otherwise FALSE.
   */
  public function isAccessAllowed(FieldableEntityInterface $entity, $uid = FALSE);

}

Members

Namesort descending Modifiers Type Description Overrides
AccessCheckerInterface::isAccessAllowed public function Checks if a user is allowed to access a fieldable entity. 1