function jsonapi_test_non_cacheable_methods_entity_predelete

Same name in other branches
  1. 10 core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module \jsonapi_test_non_cacheable_methods_entity_predelete()
  2. 11.x core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module \jsonapi_test_non_cacheable_methods_entity_predelete()

Implements hook_entity_predelete().

File

core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module, line 23

Code

function jsonapi_test_non_cacheable_methods_entity_predelete(EntityInterface $entity) {
    Url::fromRoute('<front>')->toString();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.