You are here

public function AccessCheckerInterface::isAccessAllowed 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::isAccessAllowed()

Checks if a user is allowed to access a fieldable entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: A fieldable entity.

bool|int $uid: (Optional) Defaults to the uid of the current user.

Return value

bool TRUE if access is allowed, otherwise FALSE. TRUE if access is allowed, otherwise FALSE.

1 method overrides AccessCheckerInterface::isAccessAllowed()
AccessChecker::isAccessAllowed in modules/permissions_by_entity/src/Service/AccessChecker.php
Checks if a user is allowed to access a fieldable entity.

File

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

Class

AccessCheckerInterface
Interface AccessCheckerInterface.

Namespace

Drupal\permissions_by_entity\Service

Code

public function isAccessAllowed(FieldableEntityInterface $entity, $uid = FALSE);