function JsonapiTestNonCacheableMethodsHooks::entityPredelete

Same name and namespace in other branches
  1. main core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/src/Hook/JsonapiTestNonCacheableMethodsHooks.php \Drupal\jsonapi_test_non_cacheable_methods\Hook\JsonapiTestNonCacheableMethodsHooks::entityPredelete()

Implements hook_entity_predelete().

Attributes

#[Hook('entity_predelete')]

File

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

Class

JsonapiTestNonCacheableMethodsHooks
Hook implementations for jsonapi_test_non_cacheable_methods.

Namespace

Drupal\jsonapi_test_non_cacheable_methods\Hook

Code

public function entityPredelete(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.