function jsonapi_test_non_cacheable_methods_entity_predelete

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module \jsonapi_test_non_cacheable_methods_entity_predelete()
  2. 10 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.