diff --git a/core/modules/serialization/tests/modules/entity_serialization_test/entity_serialization_test.module b/core/modules/serialization/tests/modules/entity_serialization_test/entity_serialization_test.module index dcfdea5..a75e21c 100644 --- a/core/modules/serialization/tests/modules/entity_serialization_test/entity_serialization_test.module +++ b/core/modules/serialization/tests/modules/entity_serialization_test/entity_serialization_test.module @@ -8,13 +8,15 @@ use Drupal\Core\Access\AccessResult; /** - * Implements hook_entity_field_access_alter(). Overrides some default access - * control to support testing. + * Implements hook_entity_field_access_alter(). + * + * Overrides some default access control to support testing. * * @see Drupal\serialization\Tests\EntitySerializationTest::testUserNormalize() */ function entity_serialization_test_entity_field_access_alter(array &$grants, array $context) { - // Override default access control from UserAccessControlHandler to allow access to 'pass' field for our test user + // Override default access control from UserAccessControlHandler to allow + // access to 'pass' field for the test user. if ($context['field_definition']->getName() == 'pass' && $context['account']->getUsername() == 'serialization_test_user') { $grants[':default'] = AccessResult::allowed()->inheritCacheability($grants[':default'])->cacheUntilEntityChanges($context['items']->getEntity()); }