function jsonapi_test_non_cacheable_methods_entity_presave
Same name in other branches
- 10 core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module \jsonapi_test_non_cacheable_methods_entity_presave()
- 11.x 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
Code
function jsonapi_test_non_cacheable_methods_entity_presave(EntityInterface $entity) {
Url::fromRoute('<front>')->toString();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.