function JsonapiTestNonCacheableMethodsHooks::entityPresave

Implements hook_entity_presave().

File

core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/src/Hook/JsonapiTestNonCacheableMethodsHooks.php, line 19

Class

JsonapiTestNonCacheableMethodsHooks
Hook implementations for jsonapi_test_non_cacheable_methods.

Namespace

Drupal\jsonapi_test_non_cacheable_methods\Hook

Code

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

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