There is invalid php around the docblock of the file graphql_commerce_registration.module.
<?php
use /**
* @file
* Provides Drupal\Core\Access\AccessResult class documentation.
*/
Drupal\Core\Access\AccessResult;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;
/**
* Implements hook_ENTITY_TYPE_access().
*/
function graphql_commerce_registration_registration_settings_access(EntityInterface $entity, $operation, AccountInterface $account) {
...
Correct would be:
<?php
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;
/**
* Implements hook_ENTITY_TYPE_access().
*/
function graphql_commerce_registration_registration_settings_access(EntityInterface $entity, $operation, AccountInterface $account) {
...
Comments
Comment #2
milanbombschliip commentedComment #4
milanbombschliip commented