public static function SocialEventManagersAccessHelper::getEntityAccessResult in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.2 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.3 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.4 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.5 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.6 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.7 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 8.8 modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 10.3.x modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 10.0.x modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
- 10.1.x modules/social_features/social_event/modules/social_event_managers/src/SocialEventManagersAccessHelper.php \Drupal\social_event_managers\SocialEventManagersAccessHelper::getEntityAccessResult()
Gets the Entity access for the given node.
3 calls to SocialEventManagersAccessHelper::getEntityAccessResult()
- AddEnrolleeAccessCheck::access in modules/
social_features/ social_event/ modules/ social_event_managers/ src/ Access/ AddEnrolleeAccessCheck.php - Checks access.
- EventAnEnrollController::enrollManageAccess in modules/
social_features/ social_event/ modules/ social_event_an_enroll/ src/ Controller/ EventAnEnrollController.php - Checks access for manage enrollment page.
- social_event_managers_node_access in modules/
social_features/ social_event/ modules/ social_event_managers/ social_event_managers.module - Implements hook_node_access().
File
- modules/
social_features/ social_event/ modules/ social_event_managers/ src/ SocialEventManagersAccessHelper.php, line 48
Class
- SocialEventManagersAccessHelper
- Helper class for checking update access on event managers nodes.
Namespace
Drupal\social_event_managersCode
public static function getEntityAccessResult(NodeInterface $node, $op, AccountInterface $account) {
$access = self::nodeAccessCheck($node, $op, $account);
switch ($access) {
case 2:
return AccessResult::allowed()
->cachePerPermissions()
->addCacheableDependency($node);
case 1:
return AccessResult::forbidden();
}
return AccessResult::neutral();
}