public static function Routes::rebuild in JSON:API 8.2
Invalidates any JSON:API resource type dependent responses and routes.
4 calls to Routes::rebuild()
- jsonapi_entity_bundle_create in ./
jsonapi.module - Implements hook_entity_bundle_create().
- jsonapi_entity_bundle_delete in ./
jsonapi.module - Implements hook_entity_bundle_delete().
- jsonapi_entity_create in ./
jsonapi.module - Implements hook_entity_create().
- jsonapi_entity_delete in ./
jsonapi.module - Implements hook_entity_delete().
File
- src/
Routing/ Routes.php, line 480
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();
}