protected function LatestActivityAccessControlHandler::checkCreateAccess in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/LatestActivityAccessControlHandler.php \Drupal\opigno_learning_path\LatestActivityAccessControlHandler::checkCreateAccess()
Separate from the checkAccess because the entity does not yet exist, it will be created during the 'add' process.
Overrides EntityAccessControlHandler::checkCreateAccess
File
- src/
LatestActivityAccessControlHandler.php, line 46
Class
- LatestActivityAccessControlHandler
- Access control handler for the opigno_latest_group_activity entity.
Namespace
Drupal\opigno_learning_pathCode
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
// Created only programmatically.
return AccessResult::neutral();
}