protected function LPResultAccessControlHandler::checkCreateAccess in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/LPResultAccessControlHandler.php \Drupal\opigno_learning_path\LPResultAccessControlHandler::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/
LPResultAccessControlHandler.php, line 66
Class
- LPResultAccessControlHandler
- Access control handler for the learning_path_result entity.
Namespace
Drupal\opigno_learning_pathCode
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
// Created only programmatically.
return AccessResult::neutral();
}