You are here

protected function LPResultAccessControlHandler::checkCreateAccess in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x 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_path

Code

protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {

  // Created only programmatically.
  return AccessResult::neutral();
}