summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/rest/rest.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/rest/rest.api.php')
-rw-r--r--core/modules/rest/rest.api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/rest/rest.api.php b/core/modules/rest/rest.api.php
index 2f3f6ee2c0d..d5d1b429f12 100644
--- a/core/modules/rest/rest.api.php
+++ b/core/modules/rest/rest.api.php
@@ -20,9 +20,9 @@ function hook_rest_resource_alter(&$definitions) {
if (isset($definitions['entity:node'])) {
// We want to handle REST requests regarding nodes with our own plugin
// class.
- $definitions['entity:node']['class'] = 'Drupal\mymodule\Plugin\rest\resource\NodeResource';
+ $definitions['entity:node']['class'] = 'Drupal\my_module\Plugin\rest\resource\NodeResource';
// Serialized nodes should be expanded to my specific node class.
- $definitions['entity:node']['serialization_class'] = 'Drupal\mymodule\Entity\MyNode';
+ $definitions['entity:node']['serialization_class'] = 'Drupal\my_module\Entity\MyNode';
}
// We don't want Views to show up in the array of plugins at all.
unset($definitions['entity:view']);