2c2 < index b767b9b..711fc35 100644 --- > index a850c8a..51ac96c 100644 5,6c5,15 < @@ -22,6 +22,7 @@ < use Drupal\entity\Entity\EntityFormDisplay; --- > @@ -8,7 +8,6 @@ > * API pattern. > */ > > -use Drupal\Component\Utility\String; > use Drupal\Core\Language\Language; > use Symfony\Component\HttpFoundation\Response; > use Drupal\Core\Cache\CacheBackendInterface; > @@ -20,6 +19,7 @@ > use Drupal\Core\Entity\Display\EntityFormDisplayInterface; > use Drupal\Core\Template\Attribute; 8d16 < use Drupal\user\UserInterface; 13c21 < @@ -1634,24 +1635,19 @@ function node_permissions_get_configured_types() { --- > @@ -1632,15 +1632,15 @@ function node_permissions_get_configured_types() { 19a28 > + * 21c30 < + * The user object for the user performing the operation. --- > + * The account object for the user performing the operation. 28,31d36 < - < - if (!isset($account)) { < - $account = $GLOBALS['user']; < - } 33a39,41 > if (!isset($account)) { > $account = \Drupal::currentUser(); > @@ -1649,7 +1649,7 @@ function node_access_grants($op, $account = NULL) {