function jsonapi_test_non_cacheable_methods_entity_presave in Drupal 10
Same name and namespace in other branches
- 9 core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module \jsonapi_test_non_cacheable_methods_entity_presave()
Implements hook_entity_presave().
File
- core/
modules/ jsonapi/ tests/ modules/ jsonapi_test_non_cacheable_methods/ jsonapi_test_non_cacheable_methods.module, line 16 - Contains hook implementations for testing the JSON:API module.
Code
function jsonapi_test_non_cacheable_methods_entity_presave(EntityInterface $entity) {
Url::fromRoute('<front>')
->toString();
}