class JsonapiTestNonCacheableMethodsHooks
Hook implementations for jsonapi_test_non_cacheable_methods.
Hierarchy
- class \Drupal\jsonapi_test_non_cacheable_methods\Hook\JsonapiTestNonCacheableMethodsHooks
Expanded class hierarchy of JsonapiTestNonCacheableMethodsHooks
File
-
core/
modules/ jsonapi/ tests/ modules/ jsonapi_test_non_cacheable_methods/ src/ Hook/ JsonapiTestNonCacheableMethodsHooks.php, line 14
Namespace
Drupal\jsonapi_test_non_cacheable_methods\HookView source
class JsonapiTestNonCacheableMethodsHooks {
/**
* Implements hook_entity_presave().
*/
public function entityPresave(EntityInterface $entity) {
Url::fromRoute('<front>')->toString();
}
/**
* Implements hook_entity_predelete().
*/
public function entityPredelete(EntityInterface $entity) {
Url::fromRoute('<front>')->toString();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
JsonapiTestNonCacheableMethodsHooks::entityPredelete | public | function | Implements hook_entity_predelete(). |
JsonapiTestNonCacheableMethodsHooks::entityPresave | public | function | Implements hook_entity_presave(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.