public static function Routes::rebuild in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/src/Routing/Routes.php \Drupal\jsonapi\Routing\Routes::rebuild()
Invalidates any JSON:API resource type dependent responses and routes.
4 calls to Routes::rebuild()
- jsonapi_entity_bundle_create in core/
modules/ jsonapi/ jsonapi.module - Implements hook_entity_bundle_create().
- jsonapi_entity_bundle_delete in core/
modules/ jsonapi/ jsonapi.module - Implements hook_entity_bundle_delete().
- jsonapi_entity_create in core/
modules/ jsonapi/ jsonapi.module - Implements hook_entity_create().
- jsonapi_entity_delete in core/
modules/ jsonapi/ jsonapi.module - Implements hook_entity_delete().
File
- core/
modules/ jsonapi/ src/ Routing/ Routes.php, line 475
Class
- Routes
- Defines dynamic routes.
Namespace
Drupal\jsonapi\RoutingCode
public static function rebuild() {
\Drupal::service('cache_tags.invalidator')
->invalidateTags([
'jsonapi_resource_types',
]);
\Drupal::service('router.builder')
->setRebuildNeeded();
}